aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-03-21 16:45:33 -0400
committerGitHub <noreply@github.com>2025-03-21 16:45:33 -0400
commit07e6695430c4c0d77867bb31e547ceab1d65ddd0 (patch)
tree4dec2bdb3cec8151aeae6df9f28a284f5340ea22 /cmd
parenta9777a3126b5908c5cebfb24f7422252101b2125 (diff)
downloadanubis-07e6695430c4c0d77867bb31e547ceab1d65ddd0.tar.xz
anubis-07e6695430c4c0d77867bb31e547ceab1d65ddd0.zip
cmd/anubis: set X-Real-Ip based on X-Forwarded-For (#63)v1.14.1
This triggers a SHAME release[0]. [0]: https://pridever.org/
Diffstat (limited to 'cmd')
-rw-r--r--cmd/anubis/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/anubis/main.go b/cmd/anubis/main.go
index 75d3038..e27e02f 100644
--- a/cmd/anubis/main.go
+++ b/cmd/anubis/main.go
@@ -214,6 +214,7 @@ func main() {
var h http.Handler
h = mux
h = internal.DefaultXRealIP(*debugXRealIPDefault, h)
+ h = internal.XForwardedForToXRealIP(h)
srv := http.Server{Handler: h}
listener, url := setupListener(*bindNetwork, *bind)