v0.7.4
Patch Changes
-
7b8b6c2: Add
TRUST_PROXYso the client address can be read fromX-Forwarded-For.Express leaves
trust proxyoff by default, so behind a load balancerreq.ipresolved to the
balancer rather than the caller. Every client shared one bucket in the global rate limiter and the
slow-down middleware, andexpress-rate-limitlogged anERR_ERL_UNEXPECTED_X_FORWARDED_FOR
validation error on each request. SetTRUST_PROXYto the number of proxies in front of the server
(1behind a single load balancer) to restore per-client limiting. It stays unset by default
because a directly reachable server that trusts the header lets a client forge its own address.