mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
doc: fix property names in os.networkInterfaces() example
Signed-off-by: hanityx <hanityx@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65469 Refs: https://github.com/nodejs/node/pull/63200 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
This commit is contained in:
1 parent
453f47acda
commit
fbea5c3633
1 file changed
+28
-28
+28
-28
@@ -298,42 +298,42 @@ The properties available on the assigned network address object include:
|
||||
|
||||
```json
|
||||
{
|
||||
"lo:": [
|
||||
"lo": [
|
||||
{
|
||||
"address:": "127.0.0.1",
|
||||
"netmask:": "255.0.0.0",
|
||||
"family:": "IPv4",
|
||||
"mac:": "00:00:00:00:00:00",
|
||||
"internal:": true,
|
||||
"cidr:": "127.0.0.1/8"
|
||||
"address": "127.0.0.1",
|
||||
"netmask": "255.0.0.0",
|
||||
"family": "IPv4",
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"internal": true,
|
||||
"cidr": "127.0.0.1/8"
|
||||
},
|
||||
{
|
||||
"address:": "::1",
|
||||
"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"
|
||||
"address": "::1",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"eth0:": [
|
||||
"eth0": [
|
||||
{
|
||||
"address:": "192.168.1.108",
|
||||
"netmask:": "255.255.255.0",
|
||||
"family:": "IPv4",
|
||||
"mac:": "01:02:03:0a:0b:0c",
|
||||
"internal:": false,
|
||||
"cidr:": "192.168.1.108/24"
|
||||
"address": "192.168.1.108",
|
||||
"netmask": "255.255.255.0",
|
||||
"family": "IPv4",
|
||||
"mac": "01:02:03:0a:0b:0c",
|
||||
"internal": false,
|
||||
"cidr": "192.168.1.108/24"
|
||||
},
|
||||
{
|
||||
"address:": "fe80::a00:27ff:fe4e:66a1",
|
||||
"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"
|
||||
"address": "fe80::a00:27ff:fe4e:66a1",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user