Merge pull request #448 from mwhds97/master

Make clash script ruleset iteration ordered
pull/449/head
lhie1 4 years ago committed by GitHub
commit 3d61bccfcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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