🎁 Sync 2026-04-09 04:39:26

This commit is contained in:
github-actions[bot] committed 2026-04-09 04:39:26 +08:00
1 parent 48d53589f4
commit acb728008a
7 files changed
+69 -24

No files matched your search

@@ -566,7 +566,7 @@ o = s:taboption("DNS", DynamicList, "ad_url", translate("Anti-AD 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/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.description = translate("Support Domain / Dnsmasq / Hosts format list")
o.description = translate("Support Domain / Dnsmasq / AdGuardHome / Hosts format list")
o:depends("adblock",1)
s:tab("Proxy", translate("Mode"))
+2 -2
View File
@@ -31,8 +31,8 @@ msgstr "上一次规则更新时间"
msgid "Subscribe Rules Data"
msgstr "去广告规则"
msgid "Support Domain / Dnsmasq / Hosts format list"
msgstr "支持 域名/Dnsmasq/Hosts 格式的过滤列表"
msgid "Support Domain / Dnsmasq / AdGuardHome / Hosts format list"
msgstr "支持 域名/Dnsmasq/AdGuardHome/Hosts 格式的过滤列表"
msgid "Anti-AD Rules Subscribe"
msgstr "广告过滤列表URL"
@@ -60,7 +60,7 @@ process_url() {
if (fmt == "" && $0 ~ /^\|\|[a-zA-Z0-9]/) fmt = "adguard"
if (fmt == "" && $0 ~ /^(0\.0\.0\.0|127\.0\.0\.1)[[:space:]]/)
fmt = "hosts"
if (fmt == "" && $0 ~ /^[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)+$/)
if (fmt == "" && $0 ~ /^[a-zA-Z0-9]([a-zA-Z0-9.\-]*[a-zA-Z0-9])?\.[a-zA-Z]{2,}$/)
fmt = "plain"
}