mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
warn logging on destination parser
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user