1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-16 20:25:52 +02:00

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 r.URL.Scheme = uu.Scheme
if !keepHost { if !keepHost {
r.Host = uu.Host r.Host = uu.Host
} else {
log.Printf("[DEBUG] keep host %s", r.Host)
} }
h.setXRealIP(r) h.setXRealIP(r)
}, },