summaryrefslogtreecommitdiff
path: root/doc/api/os.md
diff options
context:
space:
mode:
authorjvelezpo <sebasvelez@gmail.com>2019-01-09 11:28:42 -0500
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2019-01-11 21:35:05 +0200
commitc380ea1319d9a389da1cab92977d69a9d2fe2e33 (patch)
tree8521d167c6ff5850d2c23e311eb7c0655d263d43 /doc/api/os.md
parent1415d579a9dcebf669c12a1398bfb35fa0190047 (diff)
downloadandroid-node-v8-c380ea1319d9a389da1cab92977d69a9d2fe2e33.tar.gz
android-node-v8-c380ea1319d9a389da1cab92977d69a9d2fe2e33.tar.bz2
android-node-v8-c380ea1319d9a389da1cab92977d69a9d2fe2e33.zip
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 <ruben@bridgewater.de> Reviewed-By: Weijia Wang <starkwang@126.com>
Diffstat (limited to 'doc/api/os.md')
-rw-r--r--doc/api/os.md2
1 files changed, 2 insertions, 0 deletions
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'
}