Skip to content

Commit

Permalink
Merge pull request #33 from SonyaCore/update-1.1.1-hotfix
Browse files Browse the repository at this point in the history
Update 1.1.1 hotfix
  • Loading branch information
SonyaCore authored Jan 20, 2023
2 parents a571e9e + 46fd2b9 commit c99d174
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions V2RayGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,6 @@ def headersettings(direction) -> str:
"type": "http",
"%s": {
"version": "1.1",
"status": "200",
"reason": "OK",
"headers": {
"Content-Type": [
Expand All @@ -1196,7 +1195,7 @@ def headersettings(direction) -> str:
}
}
""" % (
"request" if direction == "in" else "response"
"response" if direction == "in" else "request"
)
return data

Expand Down Expand Up @@ -1396,15 +1395,15 @@ def client_side_configuration(protocol):
streamsettings_client = """
"streamSettings": {
"network": "%s",
%s,
"tcpSettings": %s
%s
%s
%s
},
"tag": "proxy"
""" % (
network,
tls_client if protocol == "VMESSTLS" or "VLESS" else notls(),
headersettings("out"),
tls_client if protocol == "VMESSTLS" or protocol == "VLESS" else notls(),
',"tcpSettings":' + headersettings("out") if protocol == "VMESSTLS" or protocol == "VLESS" or args.tcp or args.http else "",
"," + wsSettings if not args.http and not args.tcp else "",
)

Expand All @@ -1423,7 +1422,6 @@ def client_side_configuration(protocol):
outbands = """
"outbounds": [
{
"domainStrategy": "AsIs",
%s,
%s,
"mux": {
Expand Down

0 comments on commit c99d174

Please sign in to comment.