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