mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-11 02:44:57 +08:00
Update luci-app-passwall.patch
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user