We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b7225 commit 73713b3Copy full SHA for 73713b3
proxy.go
@@ -84,6 +84,8 @@ func (p *proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
84
// explicitly disable User-Agent so it's not set to default value
85
req.Header.Set("User-Agent", "")
86
}
87
+ req.Host = target.Host
88
+ req.Header.Set("X-Real-Ip", req.RemoteAddr)
89
90
proxy := &httputil.ReverseProxy{Director: director}
91
proxy.ServeHTTP(w, r)
0 commit comments