Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created June 11, 2018 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/1f56c6e36f5c93b4d9a753ef347c47ea to your computer and use it in GitHub Desktop.
Save miguelmota/1f56c6e36f5c93b4d9a753ef347c47ea to your computer and use it in GitHub Desktop.
Node.js Express.js forward real IP
// trust proxy, otherwise req.ip will be local ip
app.enable('trust proxy')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment