mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Resume vpn client
This commit is contained in:
@@ -167,7 +167,13 @@ NS_SWIFT_NAME(provide(credentials:));
|
|||||||
|
|
||||||
@param pauseReason <#reason description#>
|
@param pauseReason <#reason description#>
|
||||||
*/
|
*/
|
||||||
- (void)pauseWithReason:(nullable NSString *)pauseReason;
|
- (void)pauseWithReason:(nullable NSString *)pauseReason
|
||||||
|
NS_SWIFT_NAME(pause(reason:));
|
||||||
|
|
||||||
|
/**
|
||||||
|
Resume the client after it has been paused
|
||||||
|
*/
|
||||||
|
- (void)resume;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Close connection with the VPN server
|
Close connection with the VPN server
|
||||||
|
|||||||
@@ -232,6 +232,10 @@ NSString * const OpenVPNAdapterErrorEventKey = @"me.ss-abramchuk.openvpn-adapter
|
|||||||
self.vpnClient->pause(reason);
|
self.vpnClient->pause(reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)resume {
|
||||||
|
self.vpnClient->resume();
|
||||||
|
}
|
||||||
|
|
||||||
- (void)disconnect {
|
- (void)disconnect {
|
||||||
self.vpnClient->stop();
|
self.vpnClient->stop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user