warn logging on destination parser

This commit is contained in:
Umputun
2021-06-01 03:34:50 -05:00
parent 3efcd15747
commit 0b3e1d9062

View File

@@ -285,6 +285,7 @@ func (h *Http) matchHandler(next http.Handler) http.Handler {
if ok {
uu, err := url.Parse(match.Destination)
if err != nil {
log.Printf("[WARN] can't parse destination %s, %v", match.Destination, err)
h.Reporter.Report(w, http.StatusBadGateway)
return
}