add route setting

This commit is contained in:
2025-02-03 16:25:56 +08:00
parent 6797289988
commit c3dc374786
3 changed files with 28 additions and 3 deletions

View File

@@ -241,7 +241,10 @@ def main():
xray_config.clear()
for k in xray_local_config:
xray_config[k] = xray_local_config[k]
xray_config["outbounds"] = [out]
out_list = [out]
if "outbounds" in xray_config:
out_list.extend(xray_config["outbounds"])
xray_config["outbounds"] = out_list
xray_config.commit()
loop2 = False
elif func_sel.lower() == "q":