You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was introduced in #41431, the change to networkInterfaces was not documented, despite test being updated to reflect the values 4 and 6 being returned now.
Two ways moving forward - fix the documentation (add v18.0.0 change entry and update the type), or revert the change to networkInterfaces.
Version
v18.0.0
Platform
Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64
Subsystem
os
What steps will reproduce the bug?
The following code will throw an error as
family
is either a number 4 or 6.Previously, it was a string as described in documentation https://nodejs.org/api/os.html#osnetworkinterfaces
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
family
should be eitherIPv4
orIPv6
What do you see instead?
Numbers 4 or 6
Additional information
No response
The text was updated successfully, but these errors were encountered: