mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Reconnection Bugfix Proposal (#20)
* Add proposed fix to reconnection bug * Utilise tun_builder_teardown method to initiate settings reset * Move socket teardown code to -teardownTunnel:
This commit is contained in:
committed by
Sergey Abramchuk
parent
7230e1f83d
commit
73d593fe4c
@@ -93,7 +93,9 @@ bool OpenVPNClient::tun_builder_persist() {
|
||||
|
||||
void OpenVPNClient::tun_builder_establish_lite() { }
|
||||
|
||||
void OpenVPNClient::tun_builder_teardown(bool disconnect) { }
|
||||
void OpenVPNClient::tun_builder_teardown(bool disconnect) {
|
||||
[(__bridge OpenVPNAdapter *)adapter teardownTunnel:disconnect];
|
||||
}
|
||||
|
||||
bool OpenVPNClient::socket_protect(int socket) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user