macaddress
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -19,4 +19,4 @@ var os = require('os'); | ||
throw e; | ||
}; | ||
}; | ||
} | ||
} | ||
@@ -28,3 +28,6 @@ Object.keys(ifaces).forEach(function (iface) { | ||
if (!address.internal) { | ||
addresses[(address.family || "").toLowerCase()] = address.address; | ||
var family = (typeof address.family === 'number') | ||
? ("ipv" + address.family) | ||
: (address.family || "").toLowerCase(); | ||
addresses[family] = address.address; | ||
hasAddresses = true; | ||
@@ -31,0 +34,0 @@ if (address.mac && address.mac !== '00:00:00:00:00:00') { |
@@ -10,3 +10,3 @@ /* jshint node: true */ | ||
} | ||
var ifaces = out.split(/[ \t]+/); | ||
var ifaces = out.split(/[ \t\n]+/); | ||
var result = []; | ||
@@ -13,0 +13,0 @@ for (var i = 0; i < ifaces.length; i += 1) { |
{ | ||
"name": "macaddress", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Get the MAC addresses (hardware addresses) of the hosts network interfaces.", | ||
@@ -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
21334
20
447