network
network copied to clipboard
Compatibility with node v18
Node version 18 has added an undocumented change to the os.networkInterfaces return values. See: https://github.com/nodejs/node/issues/42787
This undocumented change results in this package no longer setting the ip_address field for interfaces with an IPv4 type. This PR adds compatibility for that change. I was however only able to test this on Linux as I do not own any Mac or Windows machines.