method BlockList.prototype.addRange
Usage in Deno
import { BlockList } from "node:net";
BlockList.prototype.addRange(): void
Adds a rule to block a range of IP addresses from start
(inclusive) toend
(inclusive).
optional
type: IPVersion = 'ipv4'
Either 'ipv4'
or 'ipv6'
.
void
BlockList.prototype.addRange(start: SocketAddress,end: SocketAddress,): void
start: SocketAddress
end: SocketAddress
void