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
This commit is contained in:
parent
bec7199ab6
commit
4e2c9de708
3 changed files with 42 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue