node-macaddress icon indicating copy to clipboard operation
node-macaddress copied to clipboard

Does not return mac address if cable is unplugged.

Open zoell opened this issue 2 years ago • 0 comments

On Windows 10, if the network cable is unplugged it won't return back that interface.

This is a known issue with the Node.js os.networkInterfaces: https://github.com/nodejs/node/issues/498

In windows if I do ipconfig /all it returns even those interfaces where the cable is unplugged.

What I tried: macaddress.all(function (err, macs) { });

Here macs won't contain the one without a plugged cable.

zoell avatar May 03 '23 20:05 zoell