Skip to content

Commit

Permalink
fix #4 wrong header name issue when using nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
pbojinov committed Dec 27, 2014
1 parent 1ed5d8d commit c2b3768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
function getClientIp(req) {
var ipAddress;
// Amazon EC2 / Heroku workaround to get real client IP
var forwardedIpsStr = req.header('X-Forwarder-For'),
var forwardedIpsStr = req.header('X-Forwarded-For'),
clientIp = req.header('X-Client-IP');

if (clientIp) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "request-ip",
"version": "0.0.3",
"version": "0.0.4",
"description": "A small node.js module to retrieve the request's IP address",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit c2b3768

Please sign in to comment.