Commit f0b1edaf authored by Luit van Drongelen's avatar Luit van Drongelen

Fix proxy for websocket with altered Host header

parent 4dbb4274
......@@ -169,7 +169,7 @@ func (p *ReverseProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request, extr
}
defer conn.Close()
backendConn, err := net.Dial("tcp", outreq.Host)
backendConn, err := net.Dial("tcp", outreq.URL.Host)
if err != nil {
return err
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment