Reset tun without any conditions and drop idea to override remote server

This commit is contained in:
Sergey Abramchuk 2019-11-03 11:05:14 +03:00
parent f9d506ffca
commit c3ed67b67d
2 changed files with 1 additions and 15 deletions

View File

@ -93,9 +93,6 @@ public:
void external_pki_cert_request(ClientAPI::ExternalPKICertRequest& certreq) override;
void external_pki_sign_request(ClientAPI::ExternalPKISignRequest& signreq) override;
bool remote_override_enabled() override;
void remote_override(ClientAPI::RemoteOverride& remote) override;
void event(const ClientAPI::Event& event) override;
void log(const ClientAPI::LogInfo& log) override;

View File

@ -153,10 +153,7 @@ bool OpenVPNClient::tun_builder_persist() {
void OpenVPNClient::tun_builder_teardown(bool disconnect) {
[this->delegate resetSettings];
if (disconnect || !this->tun_builder_persist()) {
[this->delegate resetTun];
}
[this->delegate resetTun];
}
bool OpenVPNClient::socket_protect(int socket, std::string remote, bool ipv6) {
@ -170,14 +167,6 @@ bool OpenVPNClient::pause_on_connection_timeout() {
void OpenVPNClient::external_pki_cert_request(ClientAPI::ExternalPKICertRequest& certreq) { }
void OpenVPNClient::external_pki_sign_request(ClientAPI::ExternalPKISignRequest& signreq) { }
bool OpenVPNClient::remote_override_enabled() {
return false;
}
void OpenVPNClient::remote_override(ClientAPI::RemoteOverride& remote) {
// TODO: Override remote server
}
void OpenVPNClient::event(const ClientAPI::Event& ev) {
NSString *name = [NSString stringWithUTF8String:ev.name.c_str()];
NSString *message = [NSString stringWithUTF8String:ev.info.c_str()];