diff --git a/README.md b/README.md index f163b3a..381f4e8 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ [![Sponsoring][sponsor-badge]][sponsor-url] [![MIT license][license-img]][license-url] -This is amazing. Started as a small project just for myself, it now has > 9,000 lines of code, > 300 versions published, > 1 mio downloads per month, > 15 mio downloads overall. Thank you to all who contributed to this project! +This is amazing. Started as a small project just for myself, it now has > 9,000 lines of code, > 300 versions published, up to 2 mio downloads per month, > 18 mio downloads overall. Thank you to all who contributed to this project! ## New Version 4.0 diff --git a/lib/network.js b/lib/network.js index ba488e8..e4dea69 100644 --- a/lib/network.js +++ b/lib/network.js @@ -884,7 +884,10 @@ function networkInterfaces(callback, rescan = true) { ieee8021xAuth = IEEE8021x.protocol; ieee8021xState = IEEE8021x.state; } - let internal = (ifaces[dev] && ifaces[dev][0]) ? ifaces[dev][0].internal : !!(dev.toLowerCase().indexOf('loopback') > -1 || ifaceName.toLowerCase().indexOf('loopback') > -1); + let internal = (ifaces[dev] && ifaces[dev][0]) ? ifaces[dev][0].internal : false; + if (dev.toLowerCase().indexOf('loopback') > -1 || ifaceName.toLowerCase().indexOf('loopback') > -1) { + internal = true; + } const virtual = internal ? false : testVirtualNic(dev, ifaceName, mac); result.push({ iface: dev,