mirror of
https://github.com/Toperlock/sing-box-geosite.git
synced 2025-06-08 01:32:17 +08:00
fix domain
This commit is contained in:
parent
672e90f348
commit
b6ab5f36d2
2
main.py
2
main.py
@ -97,6 +97,8 @@ def parse_list_file(link, output_directory):
|
||||
else:
|
||||
rule_entry = {pattern: [address.strip() for address in addresses]}
|
||||
result_rules["rules"].append(rule_entry)
|
||||
# 删除 'domain_entries' 中的重复值
|
||||
domain_entries = list(set(domain_entries))
|
||||
if domain_entries:
|
||||
result_rules["rules"].insert(0, {'domain': domain_entries})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user