mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 11:03:56 +08:00
Update luci-app-passwall.patch
This commit is contained in:
1 parent
7e4576cfbe
commit
67bbb21561
1 file changed
+7
-2
@@ -237,7 +237,7 @@
|
|||||||
|
|
||||||
--- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua
|
--- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua
|
||||||
+++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua
|
+++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua
|
||||||
@@ -547,6 +547,28 @@ function o.cfgvalue(self, section)
|
@@ -547,6 +547,33 @@ function o.cfgvalue(self, section)
|
||||||
api.url("flush_set") .. "?redirect=1&reload=1", set_title)
|
api.url("flush_set") .. "?redirect=1&reload=1", set_title)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -256,12 +256,17 @@
|
|||||||
+o.description = string.format("<strong>"..translate("Last Update Checked")..":</strong> %s<br/>",UD)
|
+o.description = string.format("<strong>"..translate("Last Update Checked")..":</strong> %s<br/>",UD)
|
||||||
+o:depends("adblock",1)
|
+o:depends("adblock",1)
|
||||||
+
|
+
|
||||||
+o = s:taboption("DNS", DynamicList, "ad_url", translate("Anti-AD Rules Subscribe"))
|
+o = s:taboption("DNS", DynamicList, "ad_url", translate("Adblock Rules Subscribe"))
|
||||||
+o:value("https://cdn.jsdelivr.net/gh/217heidai/adblockfilters@main/rules/adblockdomainlite.txt", translate("AdBlock DNS Filters"))
|
+o:value("https://cdn.jsdelivr.net/gh/217heidai/adblockfilters@main/rules/adblockdomainlite.txt", translate("AdBlock DNS Filters"))
|
||||||
+o:value("https://cdn.jsdelivr.net/gh/privacy-protection-tools/anti-AD/anti-ad-domains.txt", translate("anti-AD"))
|
+o:value("https://cdn.jsdelivr.net/gh/privacy-protection-tools/anti-AD/anti-ad-domains.txt", translate("anti-AD"))
|
||||||
+o.default = "https://cdn.jsdelivr.net/gh/217heidai/adblockfilters@main/rules/adblockdomainlite.txt"
|
+o.default = "https://cdn.jsdelivr.net/gh/217heidai/adblockfilters@main/rules/adblockdomainlite.txt"
|
||||||
+o.description = translate("Support Domain / Dnsmasq / AdGuardHome / Hosts format list")
|
+o.description = translate("Support Domain / Dnsmasq / AdGuardHome / Hosts format list")
|
||||||
+o:depends("adblock",1)
|
+o:depends("adblock",1)
|
||||||
|
+
|
||||||
|
+o = s:taboption("DNS", DynamicList, "white_list", translate("Adblock white list"))
|
||||||
|
+o.datatype = "host"
|
||||||
|
+o.rmempty = true
|
||||||
|
+o:depends("adblock",1)
|
||||||
+
|
+
|
||||||
s:tab("Proxy", translate("Mode"))
|
s:tab("Proxy", translate("Mode"))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user