@@ -99,7 +99,7 @@ Adds a rule to block the given IP address.
9999### ` blockList.addAddresses(addresses[, type]) `
100100
101101<!-- YAML
102- added: REPLACEME
102+ added: v26.8.0
103103-->
104104
105105* ` addresses ` {string\[ ] |net.SocketAddress\[ ] } An array of IPv4 or IPv6
@@ -114,7 +114,7 @@ are inserted under a single internal lock acquisition.
114114### ` blockList.addCIDR(cidr) `
115115
116116<!-- YAML
117- added: REPLACEME
117+ added: v26.8.0
118118-->
119119
120120* ` cidr ` {string} An IPv4 or IPv6 subnet in CIDR notation (e.g.
@@ -128,7 +128,7 @@ the parsed network address, prefix length, and family.
128128### ` blockList.addCIDRs(cidrs) `
129129
130130<!-- YAML
131- added: REPLACEME
131+ added: v26.8.0
132132-->
133133
134134* ` cidrs ` {string\[ ] } An array of IPv4 or IPv6 subnets in CIDR notation.
@@ -202,7 +202,7 @@ console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true
202202### ` blockList.clear() `
203203
204204<!--
205- added: REPLACEME
205+ added: v26.8.0
206206-->
207207
208208Clears all rules from the ` BlockList ` .
@@ -245,7 +245,7 @@ added:
245245### ` BlockList.PRIVATE_RANGES `
246246
247247<!-- YAML
248- added: REPLACEME
248+ added: v26.8.0
249249-->
250250
251251* Type: {string\[ ] }
@@ -277,7 +277,7 @@ console.log(blockList.check('8.8.8.8')); // Prints: false
277277### ` blockList.removeAddress(address[, type]) `
278278
279279<!-- YAML
280- added: REPLACEME
280+ added: v26.8.0
281281-->
282282
283283* ` address ` {string|net.SocketAddress} An IPv4 or IPv6 address.
@@ -290,7 +290,7 @@ specified address does not exist, this is a no-op.
290290### ` blockList.removeCIDR(cidr) `
291291
292292<!-- YAML
293- added: REPLACEME
293+ added: v26.8.0
294294-->
295295
296296* ` cidr ` {string} An IPv4 or IPv6 subnet in CIDR notation (e.g.
@@ -304,7 +304,7 @@ and family. If the specified subnet does not exist, this is a no-op.
304304### ` blockList.removeRange(start, end[, type]) `
305305
306306<!-- YAML
307- added: REPLACEME
307+ added: v26.8.0
308308-->
309309
310310* ` start ` {string|net.SocketAddress} The starting IPv4 or IPv6 address in the
@@ -319,7 +319,7 @@ If the specified range does not exist, this is a no-op.
319319### ` blockList.removeSubnet(net, prefix[, type]) `
320320
321321<!-- YAML
322- added: REPLACEME
322+ added: v26.8.0
323323-->
324324
325325* ` net ` {string|net.SocketAddress} The network IPv4 or IPv6 address.
@@ -347,7 +347,7 @@ The list of rules added to the blocklist.
347347### ` blockList.size `
348348
349349<!-- YAML
350- added: REPLACEME
350+ added: v26.8.0
351351-->
352352
353353* Type: {number}
0 commit comments