endpointOptions.blockList


一个可选的 net.BlockList 实例,用于通过源地址过滤传入的数据包。配置后,每个接收到的 UDP 数据包都会在进行任何 QUIC 处理之前检查阻止列表,从而尽量减少对被阻止源的资源消耗。阻止列表是实时评估的 —— 在端点创建后添加到 BlockList 对象的规则会立即生效。

🌐 An optional net.BlockList instance for filtering incoming packets by source address. When configured, every received UDP packet is checked against the block list before any QUIC processing occurs, minimizing resource expenditure on blocked sources. The block list is evaluated live — rules added to the BlockList object after the endpoint is created take effect immediately.

看看 endpointOptions.blockListPolicy,了解比赛是如何解释的。

🌐 See endpointOptions.blockListPolicy for how matches are interpreted.