Closed fengmk2 closed 11 years ago
v0.10.16+
v0.11.5+
> os.networkInterfaces()
{ lo0:
[ { address: 'fe80::1',
netmask: 'ffff:ffff:ffff:ffff::',
family: 'IPv6',
mac: '00:00:00:00:00:00',
internal: true },
{ address: '127.0.0.1',
netmask: '255.0.0.0',
family: 'IPv4',
mac: '00:00:00:00:00:00',
internal: true },
{ address: '::1',
netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
family: 'IPv6',
mac: '00:00:00:00:00:00',
internal: true } ],
en1:
[ { address: 'fe80::7aca:39ff:feb0:e67d',
netmask: 'ffff:ffff:ffff:ffff::',
family: 'IPv6',
mac: '78:ca:39:b0:e6:7d',
internal: false },
{ address: '10.7.84.249',
netmask: '255.255.252.0',
family: 'IPv4',
mac: '78:ca:39:b0:e6:7d',
internal: false } ],
vnic0:
[ { address: '10.211.55.2',
netmask: '255.255.255.0',
family: 'IPv4',
mac: '00:1c:42:00:00:08',
internal: false } ],
vnic1:
[ { address: '10.37.129.2',
netmask: '255.255.255.0',
family: 'IPv4',
mac: '00:1c:42:00:00:09',
internal: false } ] }
https://github.com/joyent/node/pull/5954