diff --git a/internal/proxy.go b/internal/proxy.go index d4bea59..6478078 100644 --- a/internal/proxy.go +++ b/internal/proxy.go @@ -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 }