Pause vpn client

This commit is contained in:
Sergey Abramchuk
2017-05-01 12:26:09 +03:00
parent 105810082f
commit 099309c498
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -227,6 +227,11 @@ NSString * const OpenVPNAdapterErrorEventKey = @"me.ss-abramchuk.openvpn-adapter
});
}
- (void)pauseWithReason:(NSString *)pauseReason {
std::string reason = pauseReason ? std::string([pauseReason UTF8String]) : "";
self.vpnClient->pause(reason);
}
- (void)disconnect {
self.vpnClient->stop();
}