From c380ea1319d9a389da1cab92977d69a9d2fe2e33 Mon Sep 17 00:00:00 2001 From: jvelezpo Date: Wed, 9 Jan 2019 11:28:42 -0500 Subject: 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(+) (limited to 'doc/api/os.md') diff --git a/doc/api/os.md b/doc/api/os.md index 27326c4ea3..5ba1958bd9 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' } -- cgit v1.2.3