mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-06 00:00:03 +08:00
Reconnect vpn client
This commit is contained in:
@@ -175,6 +175,14 @@ NS_SWIFT_NAME(pause(reason:));
|
|||||||
*/
|
*/
|
||||||
- (void)resume;
|
- (void)resume;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Do a disconnect/reconnect cycle after given amount of seconds from now
|
||||||
|
|
||||||
|
@param interval <#interval description#>
|
||||||
|
*/
|
||||||
|
- (void)reconnectAfterTimeInterval:(NSInteger)interval
|
||||||
|
NS_SWIFT_NAME(reconnect(interval:));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Close connection with the VPN server
|
Close connection with the VPN server
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -236,6 +236,10 @@ NSString * const OpenVPNAdapterErrorEventKey = @"me.ss-abramchuk.openvpn-adapter
|
|||||||
self.vpnClient->resume();
|
self.vpnClient->resume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)reconnectAfterTimeInterval:(NSInteger)interval {
|
||||||
|
self.vpnClient->reconnect(interval);
|
||||||
|
}
|
||||||
|
|
||||||
- (void)disconnect {
|
- (void)disconnect {
|
||||||
self.vpnClient->stop();
|
self.vpnClient->stop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user