From 19e4a3b04330c47558f9b8885c1d0001d41ee8d8 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Wed, 19 Aug 2026 11:47:57 -0400 Subject: [PATCH] make change --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a89b84d..565da86 100644 --- a/main.go +++ b/main.go @@ -619,7 +619,7 @@ func (p *Badger) setIPHeaders(req *http.Request, realIP string) { // unconditionally overwrites X-Forwarded-For/X-Real-Ip instead of // appending to them - a proxy like that has no reason to touch a header // name it doesn't recognize, so this survives where the standard ones - // don't. + // don't if p.realIPHeader != "" { req.Header.Set(p.realIPHeader, realIP) }