Skip to content

Commit

Permalink
replace space to nothing in json string in order to prevent urlencode to
Browse files Browse the repository at this point in the history
produce extra + signs
  • Loading branch information
gitea committed Jan 15, 2025
1 parent 4d37252 commit d53b46c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/subscription/v2ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def vmess(
extra["downloadSettings"] = downloadSettings
payload["type"] = mode

payload["extra"] = extra
payload["extra"] = (json.dumps(extra)).replace(" ","")

elif net == "ws":
if heartbeatPeriod:
Expand Down Expand Up @@ -332,7 +332,7 @@ def vless(cls,
extra["xmux"] = xmux
if downloadSettings:
extra["downloadSettings"] = downloadSettings
payload["extra"] = extra
payload["extra"] = (json.dumps(extra)).replace(" ","")

elif net == 'kcp':
payload['seed'] = path
Expand Down Expand Up @@ -437,7 +437,7 @@ def trojan(cls,
extra["xmux"] = xmux
if downloadSettings:
extra["downloadSettings"] = downloadSettings
payload["extra"] = json.dumps(extra)
payload["extra"] = (json.dumps(extra)).replace(" ","")

elif net == 'quic':
payload['key'] = path
Expand Down

0 comments on commit d53b46c

Please sign in to comment.