Some pretty fixes

This commit is contained in:
Mykola Baibuz 2025-03-13 22:04:03 +02:00
parent 2206b4a2dd
commit a120f3d5bd
7 changed files with 12 additions and 13 deletions

View file

@ -203,8 +203,8 @@ bool WindowsFirewall::enableInterface(int vpnAdapterIndex) {
FW_OK(allowTrafficForAppOnAll(getCurrentPath(), MAX_WEIGHT, FW_OK(allowTrafficForAppOnAll(getCurrentPath(), MAX_WEIGHT,
"Allow all for AmneziaVPN.exe")); "Allow all for AmneziaVPN.exe"));
FW_OK(blockTrafficOnPort(53, MED_WEIGHT, "Block all DNS")); FW_OK(blockTrafficOnPort(53, MED_WEIGHT, "Block all DNS"));
FW_OK( FW_OK(allowLoopbackTraffic(MED_WEIGHT,
allowLoopbackTraffic(MED_WEIGHT, "Allow Loopback traffic on device %1")); "Allow Loopback traffic on device %1"));
logger.debug() << "Killswitch on! Rules:" << m_activeRules.length(); logger.debug() << "Killswitch on! Rules:" << m_activeRules.length();
return true; return true;

View file

@ -251,7 +251,6 @@ void SettingsController::toggleKillSwitch(bool enable)
} else { } else {
emit strictKillSwitchEnabledChanged(isStrictKillSwitchEnabled()); emit strictKillSwitchEnabledChanged(isStrictKillSwitchEnabled());
} }
} }
bool SettingsController::isStrictKillSwitchEnabled() bool SettingsController::isStrictKillSwitchEnabled()