mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
Add exclusion for VPN Server host (MacOS/OpenVPN)
This commit is contained in:
@@ -225,6 +225,8 @@ bool IpcServer::enableKillSwitch(const QJsonObject &configStr, int vpnAdapterInd
|
|||||||
if (splitTunnelType == 0)
|
if (splitTunnelType == 0)
|
||||||
{
|
{
|
||||||
blockAll = true;
|
blockAll = true;
|
||||||
|
allowNets = true;
|
||||||
|
allownets.append(configStr.value(amnezia::config_key::hostName).toString());
|
||||||
} else if (splitTunnelType == 1)
|
} else if (splitTunnelType == 1)
|
||||||
{
|
{
|
||||||
blockNets = true;
|
blockNets = true;
|
||||||
@@ -234,6 +236,7 @@ bool IpcServer::enableKillSwitch(const QJsonObject &configStr, int vpnAdapterInd
|
|||||||
} else if (splitTunnelType == 2) {
|
} else if (splitTunnelType == 2) {
|
||||||
blockAll = true;
|
blockAll = true;
|
||||||
allowNets = true;
|
allowNets = true;
|
||||||
|
allownets.append(configStr.value(amnezia::config_key::hostName).toString());
|
||||||
for (auto v : splitTunnelSites) {
|
for (auto v : splitTunnelSites) {
|
||||||
allownets.append(v.toString());
|
allownets.append(v.toString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user