@tinypudding/puddy-lib
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -23,3 +23,3 @@ | ||
// Forwarded | ||
else if (req.headers['x-forwarded-for']) { | ||
if (typeof ip.value !== "string" && req.headers['x-forwarded-for']) { | ||
ip.value = req.headers['x-forwarded-for']; | ||
@@ -32,3 +32,3 @@ ip.type = 'x-forwarded-for'; | ||
// Connection | ||
if (!ip.value && req.connection && req.connection.remoteAddress) { | ||
if (typeof ip.value !== "string" && req.connection && req.connection.remoteAddress) { | ||
ip.value = req.connection.remoteAddress; | ||
@@ -38,2 +38,7 @@ ip.type = 'connection.remoteAddress'; | ||
// Convert IP Value | ||
if(typeof ip.value === "string") { | ||
ip.value = ip.value.split(','); | ||
} | ||
// Return Value | ||
@@ -40,0 +45,0 @@ return ip; |
{ | ||
"name": "@tinypudding/puddy-lib", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Essential codes to run the other repositories from the Tiny Pudding Account.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
60149
801