From 1959706ab49f9fe234471cbc862c4745b048e59a Mon Sep 17 00:00:00 2001 From: Umputun Date: Tue, 23 Jul 2024 11:27:58 -0500 Subject: [PATCH] replace keep host with less verbose but more detailed dbg messages only if keep host is enabled --- app/proxy/proxy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/proxy/proxy.go b/app/proxy/proxy.go index adbee1e..ccdb6b5 100644 --- a/app/proxy/proxy.go +++ b/app/proxy/proxy.go @@ -224,6 +224,8 @@ func (h *Http) proxyHandler() http.HandlerFunc { r.URL.Scheme = uu.Scheme if !keepHost { r.Host = uu.Host + } else { + log.Printf("[DEBUG] keep host %s", r.Host) } h.setXRealIP(r) },