Files
inbuxa-webmail/server
jcoffey-dev 774a2de094
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 1m45s
ci / announce (pull_request) Skipped
Trust IPv4 proxies on a dual-stack socket
The image listens on ::, where Node reports an IPv4 peer as
::ffff:10.0.0.5. No IPv4 range matches that form, so every proxy reaching
the webmail over IPv4 looked untrusted: its X-Forwarded-For was ignored and
the proxy itself became the client. Behind Caddy, nginx or an ingress, all
users then shared one sign-in limit and one address in the logs.

The peer is now read in its plain IPv4 form, as the forwarded chain
already was.
2026-11-18 19:41:12 -07:00
..