Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #56 from cbdog94/master
Browse files Browse the repository at this point in the history
优化tcp和kcp的tls设置
  • Loading branch information
jiangxufeng authored Nov 15, 2019
2 parents 8c87647 + 8c05004 commit 15f5bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2rayL-GUI/sub2conf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ def setconf(self, region, http, socks):
"uplinkCapacity": 12,
"writeBufferSize": 1
},
"security": ""
"security": "tls" if use_conf["tls"] else ""
}
# tcp
elif use_conf["net"] == "tcp":
conf['outbounds'][0]["streamSettings"] = {
"network": use_conf["net"],
"security": "",
"security": "tls" if use_conf["tls"] else "",
"tcpsettings": {
"connectionReuse": True,
"header": {
Expand Down

0 comments on commit 15f5bf4

Please sign in to comment.