This commit is contained in:
Johnshall
2021-12-06 20:04:48 +08:00
parent 4b594af3fb
commit 46d437ca69
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ rules_url = [
# 乘风 广告过滤规则
'https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/rule.txt',
# Peter Lowe 广告和隐私跟踪域名
# 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=adblockplus;showintro=0',
'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=adblockplus;showintro=0',
]
rule = ''

View File

@@ -37,7 +37,7 @@ def getRulesStringFromFile(path, kind):
prefix = 'IP-CIDR'
if '/' not in content:
content += '/32'
elif '.' not in content:
elif '.' not in content and len(content) > 1:
prefix = 'DOMAIN-KEYWORD'
ret += prefix + ',%s,%s\n' % (content, kind)