replace keep host with less verbose but more detailed dbg messages only if keep host is enabled

This commit is contained in:
Umputun 2024-07-23 11:27:58 -05:00
parent 85702e4de1
commit 1959706ab4

View File

@ -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)
},