diff --git a/.github/diy/patches/luci-app-passwall.patch b/.github/diy/patches/luci-app-passwall.patch index 016188c0..70011d6c 100644 --- a/.github/diy/patches/luci-app-passwall.patch +++ b/.github/diy/patches/luci-app-passwall.patch @@ -204,7 +204,7 @@ --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua -@@ -547,6 +547,45 @@ function o.cfgvalue(self, section) +@@ -547,6 +547,46 @@ function o.cfgvalue(self, section) api.url("flush_set") .. "?redirect=1&reload=1", set_title) end @@ -228,10 +228,11 @@ +o:value("https://cdn.jsdelivr.net/gh/privacy-protection-tools/anti-AD@master/anti-ad-domains.txt", translate("anti-AD")) +o.default = "https://cdn.jsdelivr.net/gh/217heidai/adblockfilters@main/rules/adblockdomainlite.txt" +o.description = translate("Support Domain / Dnsmasq / AdGuardHome / Hosts format list") ++o.rmempty = false +o:depends("adblock",1) + +o = s:taboption("DNS", DynamicList, "white_list", translate("Adblock white list")) -+o.rmempty = true ++o.rmempty = false +o:depends("adblock",1) +function o.validate(self, value) + local vlist = (type(value) == "table") and value or { value }