Skip to content
Permalink
Browse files

doc: update `os.networkInterfaces()` example

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 addaleax committed Jan 9, 2019
1 parent 1697604 commit 177635b320b26e436037137a6c7bab9a5a003c57
Showing with 2 additions and 0 deletions.
  1. +2 −0 doc/api/os.md
@@ -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'
}
@@ -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'
}

0 comments on commit 177635b

Please sign in to comment.
You can’t perform that action at this time.