bugfix networkInterfaces() - optimized ip6 address selection
This commit is contained in:
+3
-1
@@ -144,7 +144,9 @@ function networkInterfaces(callback) {
|
||||
ip4 = details.address
|
||||
}
|
||||
if (details.family === 'IPv6') {
|
||||
ip6 = details.address
|
||||
if (!ip6 || ip6.match(/^fe80::/i)) {
|
||||
ip6 = details.address
|
||||
}
|
||||
}
|
||||
mac = details.mac;
|
||||
if (mac.indexOf('00:00:0') > -1 && (_linux || _darwin)) {
|
||||
|
||||
Reference in New Issue
Block a user