diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-03-21 16:45:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-21 16:45:33 -0400 |
| commit | 07e6695430c4c0d77867bb31e547ceab1d65ddd0 (patch) | |
| tree | 4dec2bdb3cec8151aeae6df9f28a284f5340ea22 /cmd/anubis | |
| parent | a9777a3126b5908c5cebfb24f7422252101b2125 (diff) | |
| download | anubis-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/anubis')
| -rw-r--r-- | cmd/anubis/main.go | 1 |
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) |
