blockList.addAddress(address[, type])
address
<string> | <net.SocketAddress> IPv4 或 IPv6 地址。type
<string>'ipv4'
或'ipv6'
。 默认值:'ipv4'
。
添加规则以阻止给定的 IP 地址。
address
<string> | <net.SocketAddress> An IPv4 or IPv6 address.type
<string> Either'ipv4'
or'ipv6'
. Default:'ipv4'
.
Adds a rule to block the given IP address.