diff --git a/CHANGELOG.md b/CHANGELOG.md index 09e77db..2989237 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,6 +98,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.30.2 | 2017-09-26 | bugfix `networkInterfaces()` - optimized ip6 address selection | | 3.30.1 | 2017-09-21 | bugfix/typo `inetChecksite()` | | 3.30.0 | 2017-09-21 | extended `versions()` (added `yarn`, `gulp`, `grunt`, `tsc`, `git`) | | 3.29.0 | 2017-09-15 | extended windows support `services()`, optimized `diskLayout()` (OSX), bugfixes | diff --git a/README.md b/README.md index e6e7404..02a0096 100644 --- a/README.md +++ b/README.md @@ -548,6 +548,7 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra - csy [csy](https://github.com/csy1983) - Tiago Roldão [tiagoroldao](https://github.com/tiagoroldao) - dragonjet [dragonjet](https://github.com/dragonjet) +- Adam Reis [adamreisnz](https://github.com/adamreisnz) OSX Temperature: Credits here are going to: diff --git a/lib/network.js b/lib/network.js index d5f23ea..d2c89fc 100644 --- a/lib/network.js +++ b/lib/network.js @@ -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)) {