diff --git a/middleware/proxy/reverseproxy.go b/middleware/proxy/reverseproxy.go index e5652fa9..f9da992e 100644 --- a/middleware/proxy/reverseproxy.go +++ b/middleware/proxy/reverseproxy.go @@ -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 }