Comparing version 0.0.4 to 0.0.5
@@ -110,3 +110,3 @@ | ||
} | ||
return ip; | ||
return ip || '127.0.0.1'; | ||
} | ||
@@ -113,0 +113,0 @@ |
{ | ||
"name": "ipware", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Returns the real IP address of users in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,6 +43,6 @@ Node IPware | ||
// **Advanced option:** By default the left most address in the `HTTP_X_FORWARDED_FOR` is returned. | ||
// However, depending on your preference and needs, you can change this behavior by passing | ||
// the `right_most_proxy=True` to the API. | ||
// **Note:** Not all proxies are equal. So left to right or right to left preference is not a | ||
// Advanced option: By default the left most address in the `HTTP_X_FORWARDED_FOR` is | ||
// returned. However, depending on your preference and needs, you can change this | ||
// behavior by passing the `right_most_proxy=True` to the API. | ||
// Note: Not all proxies are equal. So left to right or right to left preference is not a | ||
// rule that all proxy servers follow. | ||
@@ -49,0 +49,0 @@ |
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
29695