From 1198366b16fdf07bd4f775b75c434f74ca02b1d3 Mon Sep 17 00:00:00 2001 From: ud3v0id <51294236+ud3v0id@users.noreply.github.com> Date: Mon, 18 Sep 2023 14:42:00 +0800 Subject: [PATCH] luci: fix using ipv6 to access block_host rule --- .../root/usr/share/passwall/helper_dnsmasq_add.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq_add.lua b/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq_add.lua index b47cacbd3..febf53c48 100644 --- a/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq_add.lua +++ b/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq_add.lua @@ -188,7 +188,7 @@ if not fs.access(CACHE_DNS_PATH) then --屏蔽列表 for line in io.lines("/usr/share/passwall/rules/block_host") do if line ~= "" and not line:find("#") then - set_domain_address(line, "0.0.0.0") + set_domain_address(line, "") end end @@ -366,7 +366,7 @@ if not fs.access(CACHE_DNS_PATH) then set_name = "nftset" end for key, value in pairs(list1) do - if value.address and #value.address > 0 then + if value.address then address_out:write(string.format("address=/.%s/%s\n", key, value.address)) end if value.dns and #value.dns > 0 then