un33k / node-ipware

Returns the real IP address of users in Node.js
MIT License
124 stars 17 forks source link

Update defaults.json #5

Closed allthecodes closed 8 years ago

allthecodes commented 9 years ago

Added 'X_FORWARDED_FOR' to the defaults.json, which is the header used by Amazon Elastic Load Balancers for forwarding Client IPs.

un33k commented 9 years ago

Great. If you want it quick, then you can just pass in your own json file. If you could put the X_FORWARDED_FOR, just before REMOTE_ADDR and add a quick test for it, it would be great. Otherwise, I will push the changes out on next release cycle.

Thx agian.

allthecodes commented 8 years ago

No probs. Added the tests, and differentiated between the existing http_x_forwarded_for and x_forwarded_for.

Hope that helps!

un33k commented 8 years ago

Your changes are published in 0.0.7 on npm. Thx again.