Skip to content

Commit

Permalink
fix: remarks field in v2ray custom config
Browse files Browse the repository at this point in the history
  • Loading branch information
M03ED committed Feb 21, 2024
1 parent 28c28ea commit b31ca84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/subscription/v2ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ def __init__(self):
mux_json = json.loads(mux_template)
self.mux_config = mux_json["v2ray"]

def add_outbound(self, remark, outbound_data, proxy_outbound):
def add_outbound(self, remarks, outbound_data, proxy_outbound):
json_template = json.loads(self.template)
json_template["remark"] = remark
json_template["remarks"] = remarks
json_template["outbounds"].append(outbound_data)
if proxy_outbound:
json_template["outbounds"].append(proxy_outbound)
Expand Down

0 comments on commit b31ca84

Please sign in to comment.