mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 20:16:52 +00:00
https 、客户端与服务端连接优化
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user