From 8aedbbdb6c429cdc2462b9fe2025106a257d1382 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Tue, 12 Nov 2024 18:14:50 +0100 Subject: [PATCH] fix: fix host forwording --- internal/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }