From 8dabf5af1de93d4ea81c956bf495f1495b4b65d6 Mon Sep 17 00:00:00 2001 From: cnlh Date: Tue, 3 Mar 2020 14:31:14 +0800 Subject: [PATCH] fix:#433 --- server/proxy/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/proxy/http.go b/server/proxy/http.go index 73507ee..af4ad80 100644 --- a/server/proxy/http.go +++ b/server/proxy/http.go @@ -129,8 +129,9 @@ func (s *httpServer) handleHttp(c *conn.Conn, r *http.Request) { ) defer func() { if connClient != nil { - s.writeConnFail(c.Conn) connClient.Close() + }else { + s.writeConnFail(c.Conn) } c.Close() }()