Skip to content

typeof os.networkInterfaces family is a number (v18.0.0) #42861

Closed
@elecV2

Description

@elecV2

Affected URL(s)

https://nodejs.org/dist/latest-v18.x/docs/api/os.html#osnetworkinterfaces

Description of the problem

according to this commit: 3a26db9 , the type of os.networkInterfaces family is an integer now, but the api doc still show as string.

Another problem about this change, some functions of package require('ip') may not working. error message: details.family.toLowerCase is not a function

detail code: https://github.com/indutny/node-ip/blob/master/lib/ip.js#L385

(Just bring it up incase someone get the same error

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.osIssues and PRs related to the os subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions