Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Mykola Baibuz
fef6cbe4f0 Fixes for Windows killswitch 2025-05-04 20:33:56 +03:00
Mykola Baibuz
8c4f2a4ee0 fix: Win OpenVPN with strict mode killswitch 2025-05-04 17:07:21 +03:00
2 changed files with 2 additions and 2 deletions

View file

@ -256,7 +256,7 @@ bool WindowsFirewall::allowTrafficRange(const QStringList& ranges) {
for (const QString& addr : ranges) {
logger.debug() << "Allow killswitch exclude: " << addr;
if (!allowTrafficTo(QHostAddress(addr), LOW_WEIGHT + 1, "Allow killswitch bypass traffic")) {
if (!allowTrafficTo(QHostAddress(addr), HIGH_WEIGHT, "Allow killswitch bypass traffic")) {
return false;
}
}

View file

@ -171,7 +171,7 @@ ErrorCode OpenVpnProtocol::start()
return lastError();
}
#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS)
#ifdef AMNEZIA_DESKTOP
IpcClient::Interface()->addKillSwitchAllowedRange(QStringList(NetworkUtilities::getIPAddress(
m_configData.value(amnezia::config_key::hostName).toString())));
#endif