https 、客户端与服务端连接优化

This commit is contained in:
刘河
2019-02-01 02:06:30 +08:00
parent 717028e5f1
commit eccc221e67
32 changed files with 1106 additions and 1140 deletions

View File

@@ -19,10 +19,10 @@ var (
p = flag.String("p", "", "验证密码(socks5和web)")
compress = flag.String("compress", "", "数据压缩方式snappy")
crypt = flag.String("crypt", "false", "是否加密(true|false)")
mux = flag.String("mux", "false", "是否TCP多路复用(true|false)")
)
func main() {
log.SetFlags(log.Lshortfile)
flag.Parse()
task := &utils.Tunnel{
TcpPort: *httpPort,
@@ -33,7 +33,6 @@ func main() {
P: *p,
Compress: *compress,
Crypt: utils.GetBoolByStr(*crypt),
Mux: utils.GetBoolByStr(*mux),
},
Flow: &utils.Flow{},
UseClientCnf: false,