diff --git a/client/mozilla/localsocketcontroller.cpp b/client/mozilla/localsocketcontroller.cpp index db9f96635..56178eeb9 100644 --- a/client/mozilla/localsocketcontroller.cpp +++ b/client/mozilla/localsocketcontroller.cpp @@ -199,14 +199,6 @@ void LocalSocketController::activate(const QJsonObject &rawConfig) { jsAllowedIPAddesses.append(range); } } - - // Allow access to Amnezia DNS - QJsonObject range_ipv4; - range_ipv4.insert("address", amnezia::protocols::dns::amneziaDnsIp); - range_ipv4.insert("range", 32); - range_ipv4.insert("isIpv6", false); - jsAllowedIPAddesses.append(range_ipv4); - } } diff --git a/client/vpnconnection.cpp b/client/vpnconnection.cpp index 878a1cde5..dea40f240 100644 --- a/client/vpnconnection.cpp +++ b/client/vpnconnection.cpp @@ -375,6 +375,11 @@ void VpnConnection::appendSplitTunnelingConfig() sitesJsonArray.append(site); } + // Allow traffic to Amezia DNS + if (routeMode == Settings::VpnOnlyForwardSites){ + sitesJsonArray.append(amnezia::protocols::dns::amneziaDnsIp); + } + m_vpnConfiguration.insert(config_key::splitTunnelType, routeMode); m_vpnConfiguration.insert(config_key::splitTunnelSites, sitesJsonArray); }