Resume vpn client

This commit is contained in:
Sergey Abramchuk
2017-05-01 12:29:28 +03:00
parent 099309c498
commit a66c3eed27
2 changed files with 11 additions and 1 deletions

View File

@@ -167,7 +167,13 @@ NS_SWIFT_NAME(provide(credentials:));
@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

View File

@@ -232,6 +232,10 @@ NSString * const OpenVPNAdapterErrorEventKey = @"me.ss-abramchuk.openvpn-adapter
self.vpnClient->pause(reason);
}
- (void)resume {
self.vpnClient->resume();
}
- (void)disconnect {
self.vpnClient->stop();
}