Merge pull request #722 from stef03/https-proxy-client-ip

Fix problem with the client ip in https.proxy
This commit is contained in:
Simone Margaritelli 2020-05-04 12:57:01 +02:00 committed by GitHub
commit 9aab1295ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,8 +378,9 @@ func (p *HTTPProxy) httpsWorker() error {
Opaque: hostname,
Host: net.JoinHostPort(hostname, "443"),
},
Host: hostname,
Header: make(http.Header),
Host: hostname,
Header: make(http.Header),
RemoteAddr: c.RemoteAddr().String(),
}
p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req)
}(c)