diff --git a/doc/api/quic.md b/doc/api/quic.md index 84484357b72fb4..486c8ee6d6848e 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1445,6 +1445,24 @@ error will be thrown if `quicsock.addEndpoint()` is called either after the `QuicSocket` has already started binding to the local ports, or after the `QuicSocket` has been destroyed. +#### `quicsocket.blockList` + + +* Type: {net.BlockList} + +A {net.BlockList} instance used to define rules for remote IPv4 or IPv6 +addresses that this `QuicSocket` is not permitted to interact with. The +rules can be specified as either specific individual addresses, ranges +of addresses, or CIDR subnet ranges. + +When listening as a server, if a packet is received from a blocked address, +the packet will be ignored. + +When connecting as a client, if the remote IP address is blocked, the +connection attempt will be rejected. + #### `quicsocket.bound`