From 5ea0a4b8bc31fdabee6a4bf70fd5cc50333cc16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20C=20McCord?= Date: Mon, 1 Jul 2024 12:31:38 -0400 Subject: [PATCH] Log IP on country block --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index c839861..2e24bfb 100644 --- a/plugin.go +++ b/plugin.go @@ -119,7 +119,7 @@ func (p Plugin) ServeHTTP(rw http.ResponseWriter, req *http.Request) { return } if !allowed { - log.Printf("%s: [%s %s %s] blocked request from %s", p.name, req.Host, req.Method, req.URL.Path, country) + log.Printf("%s: [%s %s %s] blocked request from %s (%s)", p.name, req.Host, req.Method, req.URL.Path, country, ip) rw.WriteHeader(p.disallowedStatusCode) return }