mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Reconnect vpn client
This commit is contained in:
@@ -175,6 +175,14 @@ NS_SWIFT_NAME(pause(reason:));
|
||||
*/
|
||||
- (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
|
||||
*/
|
||||
|
||||
@@ -236,6 +236,10 @@ NSString * const OpenVPNAdapterErrorEventKey = @"me.ss-abramchuk.openvpn-adapter
|
||||
self.vpnClient->resume();
|
||||
}
|
||||
|
||||
- (void)reconnectAfterTimeInterval:(NSInteger)interval {
|
||||
self.vpnClient->reconnect(interval);
|
||||
}
|
||||
|
||||
- (void)disconnect {
|
||||
self.vpnClient->stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user