Skip to content

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

@HackerWand

Description

@HackerWand
// 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions