Skip to content

Commit 177635b

Browse files
jvelezpoaddaleax
authored andcommitted
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 <[email protected]> Reviewed-By: Weijia Wang <[email protected]>
1 parent 1697604 commit 177635b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/os.md

+2
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ The properties available on the assigned network address object include:
286286
netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
287287
family: 'IPv6',
288288
mac: '00:00:00:00:00:00',
289+
scopeid: 0,
289290
internal: true,
290291
cidr: '::1/128'
291292
}
@@ -304,6 +305,7 @@ The properties available on the assigned network address object include:
304305
netmask: 'ffff:ffff:ffff:ffff::',
305306
family: 'IPv6',
306307
mac: '01:02:03:0a:0b:0c',
308+
scopeid: 1,
307309
internal: false,
308310
cidr: 'fe80::a00:27ff:fe4e:66a1/64'
309311
}

0 commit comments

Comments
 (0)