diff options
Diffstat (limited to 'doc/api/net.md')
-rw-r--r-- | doc/api/net.md | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/api/net.md b/doc/api/net.md index 2a8ade43dd3..abf57a570c3 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -57,7 +57,7 @@ net.createServer().listen( ## Class: `net.BlockList` <!-- YAML -added: REPLACEME +added: v14.18.0 --> The `BlockList` object can be used with some network APIs to specify rules for @@ -66,7 +66,7 @@ IP subnets. ### `blockList.addAddress(address[, type])` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * `address` {string|net.SocketAddress} An IPv4 or IPv6 address. @@ -76,7 +76,7 @@ Adds a rule to block the given IP address. ### `blockList.addRange(start, end[, type])` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * `start` {string|net.SocketAddress} The starting IPv4 or IPv6 address in the @@ -89,7 +89,7 @@ Adds a rule to block a range of IP addresses from `start` (inclusive) to ### `blockList.addSubnet(net, prefix[, type])` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * `net` {string|net.SocketAddress} The network IPv4 or IPv6 address. @@ -102,7 +102,7 @@ Adds a rule to block a range of IP addresses specified as a subnet mask. ### `blockList.check(address[, type])` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * `address` {string|net.SocketAddress} The IP address to check @@ -129,7 +129,7 @@ console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true ### `blockList.rules` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * Type: {string[]} @@ -138,11 +138,11 @@ The list of rules added to the blocklist. ## Class: `net.SocketAddress` <!-- YAML -added: REPLACEME +added: v14.18.0 --> ### `new net.SocketAddress([options])` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * `options` {Object} @@ -155,28 +155,28 @@ added: REPLACEME ### `socketaddress.address` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * Type {string} ### `socketaddress.family` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * Type {string} Either `'ipv4'` or `'ipv6'`. ### `socketaddress.flowlabel` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * Type {number} ### `socketaddress.port` <!-- YAML -added: REPLACEME +added: v14.18.0 --> * Type {number} |