method BlockList.prototype.addSubnet
Usage in Deno
import { BlockList } from "node:net";
BlockList.prototype.addSubnet(net: SocketAddress,prefix: number,): void
Adds a rule to block a range of IP addresses specified as a subnet mask.
net: SocketAddress
The network IPv4 or IPv6 address.
void