Skip to content

Commit

Permalink
luci-app-passwall: dnsmasq shunt optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
SakuraFallingMad committed Dec 1, 2024
1 parent 2023719 commit 125c964
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,11 @@ if not fs.access(CACHE_DNS_PATH) then

if _node_id == "_direct" then
fwd_dns = LOCAL_DNS
ipset_flag = setflag_4 .. "passwall_whitelist," .. setflag_6 .. "passwall_whitelist6"
if USE_DIRECT_LIST == "1" then
ipset_flag = setflag_4 .. "passwall_whitelist," .. setflag_6 .. "passwall_whitelist6"
else
ipset_flag = setflag_4 .. "passwall_shuntlist," .. setflag_6 .. "passwall_shuntlist6"
end
else
fwd_dns = TUN_DNS
ipset_flag = setflag_4 .. "passwall_shuntlist," .. setflag_6 .. "passwall_shuntlist6"
Expand Down

0 comments on commit 125c964

Please sign in to comment.