Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock committed Aug 24, 2024
1 parent 25755aa commit 7f5f1aa
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 7f5f1aa

Please sign in to comment.