From 303587f91b465565b0afa57a33933d2dd16183cd Mon Sep 17 00:00:00 2001 From: "arraykeys@gmail.com" Date: Tue, 22 Jan 2019 14:24:38 +0800 Subject: [PATCH] fix #210 --- services/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/http/http.go b/services/http/http.go index 2c1dcb6..23e2c0d 100644 --- a/services/http/http.go +++ b/services/http/http.go @@ -416,7 +416,7 @@ func (s *HTTP) OutToTCP(useProxy bool, address string, inConn *net.Conn, req *ut if *s.cfg.ParentCompress { outConn = utils.NewCompConn(outConn) } - if *s.cfg.ParentKey != "" { + if useProxy && *s.cfg.ParentKey != "" { outConn = conncrypt.New(outConn, &conncrypt.Config{ Password: *s.cfg.ParentKey, })