From 614edcba5836a81fbddfbe5c9597764111d4e0d9 Mon Sep 17 00:00:00 2001 From: jvelezpo Date: Wed, 9 Jan 2019 11:28:42 -0500 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/25417 Fixes: https://github.com/nodejs/node/issues/25408 Reviewed-By: Ruben Bridgewater Reviewed-By: Weijia Wang --- doc/api/os.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/os.md b/doc/api/os.md index ad5736d7690016..81dfe1ad87c547 100644 --- a/doc/api/os.md +++ b/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' }