Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

log the IP address as seen by Express, if available #684

Merged
merged 1 commit into from Nov 3, 2012
Commits on Nov 2, 2012
  1. log the IP address as seen by Express, if available

    Nate Silva committed Nov 2, 2012
    For `remote-addr`, the logging middleware should use `req.ip`, the IP
    address seen by Express. This is especially useful when behind a proxy
    with the Express “trust proxy” option. If `req.ip` is not enabled,
    fallback to the traditional method.