method BlockList.prototype.addAddress
Jump to headingBlockList.prototype.addAddress(address: string,type?: IPVersion,): void
Adds a rule to block the given IP address.
Parameters Jump to heading
Jump to headingaddress: string
An IPv4 or IPv6 address.
optional
Jump to headingtype: IPVersion = 'ipv4'
Either 'ipv4'
or 'ipv6'
.
Return Type Jump to heading
void
Jump to headingBlockList.prototype.addAddress(address: SocketAddress): void
Parameters Jump to heading
Jump to headingaddress: SocketAddress
Return Type Jump to heading
void