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

@ -380,6 +380,7 @@ func (p *HTTPProxy) httpsWorker() error {
}, },
Host: hostname, Host: hostname,
Header: make(http.Header), Header: make(http.Header),
RemoteAddr: c.RemoteAddr().String(),
} }
p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req) p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req)
}(c) }(c)