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: #25417
Fixes: #25408
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Weijia Wang <starkwang@126.com>
  • Loading branch information
jvelezpo authored and MylesBorins committed May 16, 2019
1 parent 9833bff commit 3a30c87
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 3a30c87

Please sign in to comment.