Fix: disconnect normal proxy request

This commit is contained in:
gVisor bot 2019-02-21 16:16:49 +08:00
parent ef2b5d306d
commit 7e7b321ff9

View File

@ -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
}