mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
replace keep host with less verbose but more detailed dbg messages only if keep host is enabled
This commit is contained in:
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user