mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2024-10-06 09:12:08 +08:00
Reset tun without any conditions and drop idea to override remote server
This commit is contained in:
parent
f9d506ffca
commit
c3ed67b67d
@ -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;
|
||||
|
||||
|
@ -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()];
|
||||
|
Loading…
Reference in New Issue
Block a user