mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
also add what url rejected for
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user