cnlh il y a 5 ans
Parent
commit
8dabf5af1d
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      server/proxy/http.go

+ 2 - 1
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()
 	}()