trust-proxy
v1.0.0
Published
trust the proxy for protocol and remote IP address
Downloads
22
Readme
trust-proxy
Middleware to trust the closest proxy for IP and protocol data.
For if you're behind a reverse proxy or load balancer (such as on Nodejitsu)
Fixes req.connection.remoteAddress
, adds req.proto
and req.secure
.
Inspired by the trust proxy
option of Express.