request-ip
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -30,3 +30,3 @@ "use strict"; | ||
for (var i = forwardedIps.length - 1; i >= 0; i -= 1) { | ||
for (var i = 0; i < forwardedIps.length; i++) { | ||
if (is.ip(forwardedIps[i])) { | ||
@@ -111,2 +111,8 @@ return forwardedIps[i]; | ||
if (req.headers) { | ||
if (is.ip(req.headers['Cf-Pseudo-IPv4'])) { | ||
return req.headers['Cf-Pseudo-IPv4']; | ||
} | ||
} | ||
if (is.existy(req.raw)) { | ||
@@ -113,0 +119,0 @@ return getClientIp(req.raw); |
{ | ||
"name": "request-ip", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A small Node.js module to retrieve the request's IP address", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9810
114