diff options
author | jvelezpo <sebasvelez@gmail.com> | 2019-01-09 19:28:42 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2019-01-11 22:35:05 +0300 |
commit | c380ea1319d9a389da1cab92977d69a9d2fe2e33 (patch) | |
tree | 8521d167c6ff5850d2c23e311eb7c0655d263d43 /doc/api/os.md | |
parent | 1415d579a9dcebf669c12a1398bfb35fa0190047 (diff) |
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.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/os.md b/doc/api/os.md index 27326c4ea31..5ba1958bd99 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' } |