class BlockList extends netMod.BlockList
- Annotations
- @JSType() @JSImport("node:net", "BlockList") @native()
- Source
- nodeNetMod.scala
- Alphabetic
- By Inheritance
- BlockList
- BlockList
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BlockList()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAddress(address: scala.Predef.String, type: IPVersion): Unit
- Definition Classes
- BlockList
- def addAddress(address: scala.Predef.String): Unit
Adds a rule to block the given IP address.
Adds a rule to block the given IP address.
- address
An IPv4 or IPv6 address.
- Definition Classes
- BlockList
- def addAddress(address: netMod.SocketAddress): Unit
- Definition Classes
- BlockList
- def addRange(start: scala.Predef.String, end: scala.Predef.String, type: IPVersion): Unit
- Definition Classes
- BlockList
- def addRange(start: scala.Predef.String, end: scala.Predef.String): Unit
Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).
Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).
- start
The starting IPv4 or IPv6 address in the range.
- end
The ending IPv4 or IPv6 address in the range.
- Definition Classes
- BlockList
- def addRange(start: netMod.SocketAddress, end: netMod.SocketAddress): Unit
- Definition Classes
- BlockList
- def addSubnet(net: scala.Predef.String, prefix: Double, type: IPVersion): Unit
- Definition Classes
- BlockList
- def addSubnet(net: scala.Predef.String, prefix: Double): Unit
- Definition Classes
- BlockList
- def addSubnet(net: netMod.SocketAddress, prefix: Double): Unit
Adds a rule to block a range of IP addresses specified as a subnet mask.
Adds a rule to block a range of IP addresses specified as a subnet mask.
- net
The network IPv4 or IPv6 address.
- prefix
The number of CIDR prefix bits. For IPv4, this must be a value between 0 and 32. For IPv6, this must be between 0 and 128.
- Definition Classes
- BlockList
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def check(address: scala.Predef.String, type: IPVersion): Boolean
- Definition Classes
- BlockList
- def check(address: scala.Predef.String): Boolean
- Definition Classes
- BlockList
- def check(address: netMod.SocketAddress): Boolean
Returns
trueif the given IP address matches any of the rules added to theBlockList.Returns
trueif the given IP address matches any of the rules added to theBlockList.- address
The IP address to check
- Definition Classes
- BlockList
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated