🌈 Sync 2026-04-08 22:17:33

This commit is contained in:
github-actions[bot] committed 2026-04-08 22:17:33 +08:00
1 parent babac663b9
commit 5fb3abba3a
23 files changed
+1227 -868

No files matched your search

@@ -547,6 +547,27 @@ function o.cfgvalue(self, section)
api.url("flush_set") .. "?redirect=1&reload=1", set_title)
end
o = s:taboption("DNS", Flag, "adblock", translate("Enable adblock"))
o.rmempty = false
local UD="" rule_count="0"
if nixio.fs.access("/usr/share/passwall/rules/block_host") then
UD = os.date("%Y-%m-%d %H:%M", nixio.fs.stat("/usr/share/passwall/rules/block_host").ctime)
rule_count = tonumber(luci.sys.exec("wc -l < /usr/share/passwall/rules/block_host"))
end
o = s:taboption("DNS", DummyValue, "refresh_data", translate("Subscribe Rules Data"))
o.rawhtml = true
o.template = appname .. "/global/adblock_refresh"
o.value = rule_count.." "..translate("Records")
o.description = string.format(translate("Domain / DNSMASQ rules auto-convert").."<br/><strong>"..translate("Last Update Checked")..":</strong> %s<br/>",UD)
o:depends("adblock",1)
o = s:taboption("DNS", DynamicList, "ad_url", translate("Anti-AD Rules Subscribe"))
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/neodevpro/neodevhost/domain", translate("NEO DEV HOST"))
o.default = "https://cdn.jsdelivr.net/gh/privacy-protection-tools/anti-AD/anti-ad-domains.txt"
o:depends("adblock",1)
s:tab("Proxy", translate("Mode"))
o = s:taboption("Proxy", Flag, "use_direct_list", translatef("Use %s", translate("Direct List")))
@@ -152,7 +152,7 @@ o.validate = function(self, value)
end
---- Block Hosts
local block_host = path .. "block_host"
local block_host = path .. "my_block_host"
o = s:taboption("block_list", TextValue, "block_host", "", "<font color='red'>" .. translate("These had been joined websites will be block. Please input the domain names of websites, every line can input only one website domain. For example: twitter.com.") .. "</font>")
o.rows = 15
o.wrap = "off"