From 7e7b321ff9e6c72fabb888120ebe0131a4ce6126 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Thu, 21 Feb 2019 16:16:49 +0800 Subject: [PATCH] Fix: disconnect normal proxy request --- proxy/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/server.go b/proxy/http/server.go index 7c20e20f..1ed91332 100644 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -56,7 +56,7 @@ func (l *HttpListener) Address() string { func handleConn(conn net.Conn) { br := bufio.NewReader(conn) request, err := http.ReadRequest(br) - if err != nil || !request.URL.IsAbs() { + if err != nil || request.URL.Host == "" { conn.Close() return }