Allow internet traffic for strict mode with split tunnel

This commit is contained in:
Mykola Baibuz 2025-06-05 22:56:38 +03:00
parent c37662dbe2
commit 694ab8ba94
5 changed files with 8 additions and 7 deletions

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