Fixes for Windows killswitch (#1565)
* fix: Win OpenVPN with strict mode killswitch * Fixes for Windows killswitch
This commit is contained in:
parent
b86356b0cc
commit
e59a48f9f4
2 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ bool WindowsFirewall::allowTrafficRange(const QStringList& ranges) {
|
||||||
|
|
||||||
for (const QString& addr : ranges) {
|
for (const QString& addr : ranges) {
|
||||||
logger.debug() << "Allow killswitch exclude: " << addr;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,7 +171,7 @@ ErrorCode OpenVpnProtocol::start()
|
||||||
return lastError();
|
return lastError();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS)
|
#ifdef AMNEZIA_DESKTOP
|
||||||
IpcClient::Interface()->addKillSwitchAllowedRange(QStringList(NetworkUtilities::getIPAddress(
|
IpcClient::Interface()->addKillSwitchAllowedRange(QStringList(NetworkUtilities::getIPAddress(
|
||||||
m_configData.value(amnezia::config_key::hostName).toString())));
|
m_configData.value(amnezia::config_key::hostName).toString())));
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue