CIDR support for os.networkInterfaces #14006
Labels
feature request
Issues that request new features to be added to Node.js.
os
Issues and PRs related to the os subsystem.
os.networkInterfaces
currently returns IP addresses and netmasks in the old-fashioned format of separate address and netmask:It's very uncommon to specify a IPv6 subnet mask like above. I think it'd generally be easier for users to work with these addresses if they were also available in CIDR form, maybe via a new
cidr
property, e.g.'127.0.0.1/8'
and'2001:db8::/64'
.The text was updated successfully, but these errors were encountered: