address icon indicating copy to clipboard operation
address copied to clipboard

Unable to obtain mac address without network connection.Os.networkInterfaces will not return the network card information when there is no network

Open HackerWand opened this issue 2 years ago • 0 comments

// address.mac
interfaceName = interfaceName || getInterfaceName();
// getInterfaceName
var item = address.interface('IPv4', interfaceName);
var interfaces = os.networkInterfaces();

When there is no network, the network card information will not be returned

HackerWand avatar Mar 09 '23 02:03 HackerWand