fix: allow internet traffic for strict mode with split tunnel (#1654)

This commit is contained in:
Mykola Baibuz
2025-06-17 05:00:41 -07:00
committed by GitHub
parent a2d30efaab
commit 2605978889
5 changed files with 8 additions and 7 deletions
+3
View File
@@ -255,6 +255,9 @@ bool KillSwitch::enablePeerTraffic(const QJsonObject &configStr) {
bool KillSwitch::enableKillSwitch(const QJsonObject &configStr, int vpnAdapterIndex) {
#ifdef Q_OS_WIN
if (configStr.value("splitTunnelType").toInt() != 0) {
WindowsFirewall::create(this)->allowAllTraffic();
}
return WindowsFirewall::create(this)->enableInterface(vpnAdapterIndex);
#endif