trust the proxy for protocol and remote IP address
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json

README.md

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.