Disable split tunnel for MacOS IPSec

This commit is contained in:
Mykola Baibuz 2024-09-03 05:52:42 -07:00
parent 8c94f70edf
commit 898f497f8e

View file

@ -371,12 +371,6 @@ void Ikev2Protocol::handleNotificationImpl(int status)
IpcClient::Interface()->enableKillSwitch(m_config, 0); IpcClient::Interface()->enableKillSwitch(m_config, 0);
} }
if (m_config.value(amnezia::config_key::splitTunnelType).toInt() == 0) {
IpcClient::Interface()->routeAddList(m_vpnGateway, QStringList() << "0.0.0.0/1");
IpcClient::Interface()->routeAddList(m_vpnGateway, QStringList() << "128.0.0.0/1");
IpcClient::Interface()->routeAddList(m_routeGateway, QStringList() << m_config.value(amnezia::config_key::hostName).toString());
}
setConnectionState(Vpn::ConnectionState::Connected); setConnectionState(Vpn::ConnectionState::Connected);
} }
else if (status == NEVPNStatusReasserting) else if (status == NEVPNStatusReasserting)