pbojinov / request-ip

A Node.js module for retrieving a request's IP address on the server.
https://npmjs.com/package/request-ip
MIT License
830 stars 102 forks source link

Nginx problems #2

Closed amitgur closed 9 years ago

amitgur commented 10 years ago

This module works great untill installing nginix, I get IP 127.0.0.1. any idea ?

morello-cl commented 9 years ago

is a bug!!!! replace req.header('X-Forwarded-For') for req.header('X-Forwarder-For'));

pbojinov commented 9 years ago

fixed in https://github.com/pbojinov/request-ip/pull/4

thanks @morello-cl :+1: