Skip to content

Commit

Permalink
Revert "fix DNS leak in VPN lockdown mode when VPN is down"
Browse files Browse the repository at this point in the history
This reverts commit 2710991.
  • Loading branch information
thestinger committed May 12, 2024
1 parent 2710991 commit 296ccdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/NetworkController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ int NetworkController::setDefaultNetwork(unsigned netId) {

uint32_t NetworkController::getNetworkForDnsLocked(unsigned* netId, uid_t uid) const {
Fwmark fwmark;
fwmark.protectedFromVpn = canProtectLocked(uid);
fwmark.permission = getPermissionForUserLocked(uid);
fwmark.protectedFromVpn = true;
fwmark.permission = PERMISSION_SYSTEM;

Network* appDefaultNetwork = getPhysicalOrUnreachableNetworkForUserLocked(uid);
unsigned defaultNetId = appDefaultNetwork ? appDefaultNetwork->getNetId() : mDefaultNetId;
Expand Down

0 comments on commit 296ccdc

Please sign in to comment.