Skip to content

Commit

Permalink
fix(subscription): vless flow and tcp header fix
Browse files Browse the repository at this point in the history
  • Loading branch information
M03ED authored and SaintShit committed Aug 20, 2024
1 parent e37a3da commit efc55ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/subscription/v2ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@ def tcp_config(self, headers="none", path=None, host=None, random_user_agent=Non
if "header" not in config:
config["header"] = {}

config["header"]["type"] = headers
if headers:
config["header"]["type"] = headers

if any((path, host, random_user_agent)):
if "request" not in config["header"]:
Expand Down Expand Up @@ -705,7 +706,7 @@ def vmess_config(address=None, port=None, id=None):
}

@staticmethod
def vless_config(address=None, port=None, id=None, flow=None):
def vless_config(address=None, port=None, id=None, flow=""):
return {
"vnext": [
{
Expand Down

0 comments on commit efc55ac

Please sign in to comment.