Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 25, 2024
2 parents d468675 + 7f5f1aa commit 3b40e23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,12 @@ def combin_to_config(config, data):
out["outbounds"].insert(i, (group.rsplit("-", 1)[0]).rsplit("-", 1)[-1])
new_outbound = {'tag': (group.rsplit("-", 1)[0]).rsplit("-", 1)[-1], 'type': 'selector', 'outbounds': ['{' + group + '}']}
config_outbounds.insert(-4, new_outbound)
else:
for out in config_outbounds:
if out.get("outbounds"):
if out['tag'] == 'Proxy':
out["outbounds"] = [out["outbounds"]] if isinstance(out["outbounds"], str) else out["outbounds"]
out["outbounds"].append('{' + group + '}')
if 'subgroup' not in group:
for out in config_outbounds:
if out.get("outbounds"):
if out['tag'] == 'Proxy':
out["outbounds"] = [out["outbounds"]] if isinstance(out["outbounds"], str) else out["outbounds"]
out["outbounds"].append('{' + group + '}')
temp_outbounds = []
if config_outbounds:
# 提前处理all模板
Expand Down

0 comments on commit 3b40e23

Please sign in to comment.