Add exclusion method for Windows firewall

This commit is contained in:
Mykola Baibuz 2025-04-05 12:33:59 +03:00
parent d1f5d8815b
commit 2a546ddc28
3 changed files with 36 additions and 0 deletions

View file

@ -165,6 +165,10 @@ bool KillSwitch::allowTrafficTo(const QStringList &ranges) {
MacOSFirewall::setAnchorTable(QStringLiteral("110.allowNets"), true, QStringLiteral("allownets"), ranges);
#endif
#ifdef Q_OS_WIN
WindowsFirewall::create(this)->allowTrafficRange(ranges);
#endif
return true;
}