mirror of
https://github.com/TG-Twilight/AWAvenue-Ads-Rule.git
synced 2025-11-04 14:49:47 +08:00
对clash ip规则添加no-resolve close #84
This commit is contained in:
parent
e5085bd635
commit
50e91f48bb
@ -16,10 +16,10 @@ def format_regex(List):
|
||||
def format_ip(List):
|
||||
ip = []
|
||||
for line in List:
|
||||
ip_lines = f" - IP-CIDR,{line.strip()}"
|
||||
ip_lines = f" - IP-CIDR,{line.strip()},no-resolve"
|
||||
ip.append(ip_lines)
|
||||
return ip
|
||||
|
||||
def build(rule):
|
||||
list = ["payload:"] + format_ip(rule.ip_list) + format_domain(rule.domain_list) + format_regex(rule.regex_list)
|
||||
return {'list': list, 'suffix': '.yaml', 'comment': '#', 'total': len(list)}
|
||||
return {'list': list, 'suffix': '.yaml', 'comment': '#', 'total': len(list)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user