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 <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
  • Loading branch information
jvelezpo authored and addaleax committed Jan 14, 2019
1 parent 1697604 commit 177635b
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 177635b

Please sign in to comment.