fix: --outbound keeps only first elem

This commit is contained in:
boypt 2020-03-31 15:23:29 +08:00
parent 401b556f4b
commit 12449de391
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ def jsonDump(obj, fobj):
return
if option.outbound:
onlyoutbound = {"outbounds":obj["outbounds"]}
onlyoutbound = {"outbounds":obj["outbounds"][:1]} # keeps only the first element
json.dump(onlyoutbound, fobj, indent=4)
else:
json.dump(obj, fobj, indent=4)