Make clash script ruleset iteration ordered

pull/448/head
mwhds97 4 years ago
parent 639f0039a2
commit 0c02953f40
No known key found for this signature in database
GPG Key ID: 1A79FC38AE34FB3E

@ -131,7 +131,8 @@ script:
return "DIRECT"
ctx.log('[Script] not common port use direct')
for rule_name in ctx.rule_providers.keys():
ruleset_list = [r for r in ruleset_action]
for rule_name in ruleset_list:
if ctx.rule_providers[rule_name].match(metadata):
return ruleset_action[rule_name]

Loading…
Cancel
Save