Fixes for Windows killswitch (#1565)

* fix: Win OpenVPN with strict mode killswitch

* Fixes for Windows killswitch
This commit is contained in:
Mykola Baibuz 2025-05-06 08:11:58 -07:00 committed by GitHub
parent b86356b0cc
commit e59a48f9f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

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