bugfix networkInterfaces() - optimized ip6 address selection
This commit is contained in:
parent
fb0b40d2db
commit
781fd741b9
@ -98,6 +98,7 @@ Other changes
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| 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.1 | 2017-09-21 | bugfix/typo `inetChecksite()` |
|
||||||
| 3.30.0 | 2017-09-21 | extended `versions()` (added `yarn`, `gulp`, `grunt`, `tsc`, `git`) |
|
| 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 |
|
| 3.29.0 | 2017-09-15 | extended windows support `services()`, optimized `diskLayout()` (OSX), bugfixes |
|
||||||
|
|||||||
@ -548,6 +548,7 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra
|
|||||||
- csy [csy](https://github.com/csy1983)
|
- csy [csy](https://github.com/csy1983)
|
||||||
- Tiago Roldão [tiagoroldao](https://github.com/tiagoroldao)
|
- Tiago Roldão [tiagoroldao](https://github.com/tiagoroldao)
|
||||||
- dragonjet [dragonjet](https://github.com/dragonjet)
|
- dragonjet [dragonjet](https://github.com/dragonjet)
|
||||||
|
- Adam Reis [adamreisnz](https://github.com/adamreisnz)
|
||||||
|
|
||||||
OSX Temperature: Credits here are going to:
|
OSX Temperature: Credits here are going to:
|
||||||
|
|
||||||
|
|||||||
@ -144,8 +144,10 @@ function networkInterfaces(callback) {
|
|||||||
ip4 = details.address
|
ip4 = details.address
|
||||||
}
|
}
|
||||||
if (details.family === 'IPv6') {
|
if (details.family === 'IPv6') {
|
||||||
|
if (!ip6 || ip6.match(/^fe80::/i)) {
|
||||||
ip6 = details.address
|
ip6 = details.address
|
||||||
}
|
}
|
||||||
|
}
|
||||||
mac = details.mac;
|
mac = details.mac;
|
||||||
if (mac.indexOf('00:00:0') > -1 && (_linux || _darwin)) {
|
if (mac.indexOf('00:00:0') > -1 && (_linux || _darwin)) {
|
||||||
if (Object.keys(_mac).length === 0) {
|
if (Object.keys(_mac).length === 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user