@@ -225,6 +225,9 @@ always `[0, 0, 0]`.
225
225
<!-- YAML
226
226
added: v0.6.0
227
227
changes:
228
+ - version: REPLACEME
229
+ pr-url: https://github.com/nodejs/node/pull/43054
230
+ description: The `family` property now returns a string instead of a number.
228
231
- version: v18.0.0
229
232
pr-url: https://github.com/nodejs/node/pull/41431
230
233
description: The `family` property now returns a number instead of a string.
@@ -242,12 +245,12 @@ The properties available on the assigned network address object include:
242
245
243
246
* ` address ` {string} The assigned IPv4 or IPv6 address
244
247
* ` netmask ` {string} The IPv4 or IPv6 network mask
245
- * ` family ` {number } Either ` 4 ` (for IPv4) or ` 6 ` (for IPv6)
248
+ * ` family ` {string } Either ` IPv4 ` or ` IPv6 `
246
249
* ` mac ` {string} The MAC address of the network interface
247
250
* ` internal ` {boolean} ` true ` if the network interface is a loopback or
248
251
similar interface that is not remotely accessible; otherwise ` false `
249
252
* ` scopeid ` {number} The numeric IPv6 scope ID (only specified when ` family `
250
- is ` 6 ` )
253
+ is ` IPv6 ` )
251
254
* ` cidr ` {string} The assigned IPv4 or IPv6 address with the routing prefix
252
255
in CIDR notation. If the ` netmask ` is invalid, this property is set
253
256
to ` null ` .
@@ -260,15 +263,15 @@ The properties available on the assigned network address object include:
260
263
{
261
264
address: ' 127.0.0.1' ,
262
265
netmask: ' 255.0.0.0' ,
263
- family: 4 ,
266
+ family: ' IPv4 ' ,
264
267
mac: ' 00:00:00:00:00:00' ,
265
268
internal: true ,
266
269
cidr: ' 127.0.0.1/8'
267
270
},
268
271
{
269
272
address: ' ::1' ,
270
273
netmask: ' ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff' ,
271
- family: 6 ,
274
+ family: ' IPv6 ' ,
272
275
mac: ' 00:00:00:00:00:00' ,
273
276
scopeid: 0 ,
274
277
internal: true ,
@@ -279,15 +282,15 @@ The properties available on the assigned network address object include:
279
282
{
280
283
address: ' 192.168.1.108' ,
281
284
netmask: ' 255.255.255.0' ,
282
- family: 4 ,
285
+ family: ' IPv4 ' ,
283
286
mac: ' 01:02:03:0a:0b:0c' ,
284
287
internal: false ,
285
288
cidr: ' 192.168.1.108/24'
286
289
},
287
290
{
288
291
address: ' fe80::a00:27ff:fe4e:66a1' ,
289
292
netmask: ' ffff:ffff:ffff:ffff::' ,
290
- family: 6 ,
293
+ family: ' IPv6 ' ,
291
294
mac: ' 01:02:03:0a:0b:0c' ,
292
295
scopeid: 1 ,
293
296
internal: false ,
0 commit comments