1
0
mirror of https://github.com/umputun/reproxy.git synced 2025-02-16 18:34:30 +02:00

also add what url rejected for

This commit is contained in:
Umputun 2023-11-26 18:40:04 -06:00
parent 197c8d9db3
commit 5c07e82ac4

View File

@ -51,7 +51,7 @@ func (o *OnlyFrom) Handler(next http.Handler) http.Handler {
return
}
w.WriteHeader(http.StatusForbidden)
log.Printf("[INFO] ip %q rejected", realIP)
log.Printf("[INFO] ip %q rejected for %s", realIP, r.URL.String())
}
return http.HandlerFunc(fn)
}