Skip to main content

addSubnet

method BlockList.prototype.addSubnet
Jump to headingBlockList.prototype.addSubnet(
prefix: number,
): void

Adds a rule to block a range of IP addresses specified as a subnet mask.

Parameters Jump to heading

The network IPv4 or IPv6 address.

Jump to headingprefix: number

The number of CIDR prefix bits. For IPv4, this must be a value between 0 and 32. For IPv6, this must be between 0 and 128.

Return Type Jump to heading

void
Jump to headingBlockList.prototype.addSubnet(
net: string,
prefix: number,
type?: IPVersion,
): void

Parameters Jump to heading

Jump to headingnet: string
Jump to headingprefix: number

Return Type Jump to heading

void
Back to top