method BlockList.prototype.addAddress
Usage in Deno
import { BlockList } from "node:net";
BlockList.prototype.addAddress(address: string,type?: IPVersion,): void
Adds a rule to block the given IP address.
optional
type: IPVersion = 'ipv4'
Either 'ipv4' or 'ipv6'.
void
BlockList.prototype.addAddress(address: SocketAddress): void
address: SocketAddress
void