Skip to content

Commit

Permalink
Add rules for excluded sites splittunell mode
Browse files Browse the repository at this point in the history
  • Loading branch information
outspace committed Dec 27, 2024
1 parent 1c6c8a6 commit 8fdc042
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/platforms/windows/daemon/windowsfirewall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,17 @@ bool WindowsFirewall::enablePeerTraffic(const InterfaceConfig& config) {
}
}

if (!config.m_excludedAddresses.empty()) {
for (const QString& i : config.m_excludedAddresses) {
logger.debug() << "excludedAddresses range: " << i;

if (!allowTrafficTo(i, HIGH_WEIGHT,
"Allow Ecxlude route", config.m_serverPublicKey)) {
return false;
}
}
}

result = FwpmTransactionCommit0(m_sessionHandle);
if (result != ERROR_SUCCESS) {
logger.error() << "FwpmTransactionCommit0 failed with error:" << result;
Expand Down

0 comments on commit 8fdc042

Please sign in to comment.