diff options
| author | Aurelia <aurelia@acuteaura.net> | 2025-04-23 06:06:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-23 04:06:47 +0000 |
| commit | 4e2c9de7085fbc8e5abe8d0659d807881d69769c (patch) | |
| tree | 926011d5cbc3c124dd768b0a4a103ac0755bc8a8 /cmd | |
| parent | bec7199ab6cb3f3628d6a459716d028c294a4c36 (diff) | |
| download | anubis-4e2c9de7085fbc8e5abe8d0659d807881d69769c.tar.xz anubis-4e2c9de7085fbc8e5abe8d0659d807881d69769c.zip | |
feat(cmd/anubis): compute full XFF header (#328)
* feat(cmd/anubis): compute full XFF header
this one is pretty important to not pass
through blindly, as many applications and
frameworks will trust them
* feat(cmd/anubis): skip XFF compute if remote address is loopback
* docs: update CHANGELOG
Diffstat (limited to 'cmd')
| -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 fafd1b1..b7375ea 100644 --- a/cmd/anubis/main.go +++ b/cmd/anubis/main.go @@ -280,6 +280,7 @@ func main() { h = s h = internal.RemoteXRealIP(*useRemoteAddress, *bindNetwork, h) h = internal.XForwardedForToXRealIP(h) + h = internal.XForwardedForUpdate(h) srv := http.Server{Handler: h} listener, listenerUrl := setupListener(*bindNetwork, *bind) |
