deno.com
method BlockList.prototype.addAddress
#BlockList.prototype.addAddress(
address: string,
type?: IPVersion,
): void

Adds a rule to block the given IP address.

Parameters #

#address: string

An IPv4 or IPv6 address.

optional
#type: IPVersion = 'ipv4'

Either 'ipv4' or 'ipv6'.

Return Type #

void
#BlockList.prototype.addAddress(address: SocketAddress): void

Parameters #

Return Type #

void