Comparing version 0.6.14 to 0.6.15
@@ -50,3 +50,3 @@ /* | ||
// | ||
exports.serverIp = function (server) { | ||
exports.serverIp = function (server, options) { | ||
if (!server && !server.ips && !server.addresses) { | ||
@@ -56,3 +56,7 @@ return null; | ||
var interfaces, | ||
options = options || {}; | ||
var isPublic = options.isPublic || exports.isPublic, | ||
isPrivate = options.isPrivate || exports.isPrivate, | ||
interfaces, | ||
addresses, | ||
@@ -70,3 +74,3 @@ networks, | ||
pub = server.ips.filter(function (addr) { | ||
return exports.isPublic(addr); | ||
return isPublic(addr); | ||
}); | ||
@@ -119,6 +123,6 @@ | ||
.forEach(function (addr) { | ||
if (exports.isPublic(addr)) { | ||
if (isPublic(addr)) { | ||
all['public'].push(addr); | ||
} | ||
else if (exports.isPrivate(addr)) { | ||
else if (isPrivate(addr)) { | ||
all['private'].push(addr); | ||
@@ -125,0 +129,0 @@ } |
{ | ||
"name": "pkgcloud", | ||
"description": "An infrastructure-as-a-service agnostic cloud library for node.js", | ||
"version": "0.6.14", | ||
"version": "0.6.15", | ||
"author": "Nodejitsu Inc <info@nodejitsu.com", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
429001
12760