Closed dmalan closed 2 years ago
Fixes #815.
Whereas os.networkinterfaces used to return a String value for family like 'IPv4' in Node v17 and prior, per https://nodejs.org/docs/latest-v17.x/api/os.html#osnetworkinterfaces, it seems to have changed to a Number like 4 in Node v18, per https://nodejs.org/docs/latest-v18.x/api/os.html#osnetworkinterfaces.
os.networkinterfaces
String
family
'IPv4'
Number
4
master
(No existing tests to update.)
The issue is duplicate of #810 and there is another proposed fix already in #811
Correct, duplicate of #811, and I very marginally like #811's implementation better
Relevant issues
Fixes #815.
Whereas
os.networkinterfaces
used to return aString
value forfamily
like'IPv4'
in Node v17 and prior, per https://nodejs.org/docs/latest-v17.x/api/os.html#osnetworkinterfaces, it seems to have changed to aNumber
like4
in Node v18, per https://nodejs.org/docs/latest-v18.x/api/os.html#osnetworkinterfaces.Contributor checklist
master
branch(No existing tests to update.)
Maintainer checklist