tblobaum/pixel-tracker — pull request #4 by alanthing (2012-08-08 17:15:54+00:00)
Title: Use 'X-Forwarded-For' header as the remote IP if it exists.

We're using the 'bouncy' NPM module in front our node apps and noticed that all of our remote addresses were being recorded as '127.0.0.1'. This addition will use the X-Forwarded-For header as the remote/client IP address if it exists. This should also work if the proxy server is Nginx or another web server adding the original IP address with X-Forwarded-For.