@@ -74,7 +74,7 @@ func (proxyRoute ProxyRoute) ProxyHandler() http.HandlerFunc {
|
|||||||
r.Header.Set("X-Forwarded-For", getRealIP(r))
|
r.Header.Set("X-Forwarded-For", getRealIP(r))
|
||||||
r.Header.Set("X-Real-IP", getRealIP(r))
|
r.Header.Set("X-Real-IP", getRealIP(r))
|
||||||
// Update the headers to allow for SSL redirection
|
// Update the headers to allow for SSL redirection
|
||||||
if !proxyRoute.disableHostFording {
|
if proxyRoute.disableHostFording {
|
||||||
r.URL.Scheme = targetURL.Scheme
|
r.URL.Scheme = targetURL.Scheme
|
||||||
r.Host = targetURL.Host
|
r.Host = targetURL.Host
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user