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

@@ -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)