Skip to content

Commit

Permalink
doc: update os.networkInterfaces() example
Browse files Browse the repository at this point in the history
The os.networkInterfaces() example was outdated
as the IPv6 interfaces did not include the scopeid property,
now they do.

PR-URL: nodejs#25417
Fixes: nodejs#25408
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Weijia Wang <starkwang@126.com>
  • Loading branch information
jvelezpo authored and BridgeAR committed Jan 16, 2019
1 parent 483a8b6 commit f101222
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/os.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ The properties available on the assigned network address object include:
netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
family: 'IPv6',
mac: '00:00:00:00:00:00',
scopeid: 0,
internal: true,
cidr: '::1/128'
}
Expand All @@ -304,6 +305,7 @@ The properties available on the assigned network address object include:
netmask: 'ffff:ffff:ffff:ffff::',
family: 'IPv6',
mac: '01:02:03:0a:0b:0c',
scopeid: 1,
internal: false,
cidr: 'fe80::a00:27ff:fe4e:66a1/64'
}
Expand Down

0 comments on commit f101222

Please sign in to comment.