Skip to main content
method BlockList.prototype.addAddress
BlockList.prototype.addAddress(
address: string,
type?: IPVersion,
): void
Deprecated

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
Deprecated

Parameters

address: SocketAddress

Return Type

void
Back to top