blockList.removeCIDR(cidr)


  • cidr <string> CIDR 表示法的 IPv4 或 IPv6 子网(例如 '10.0.0.0/8' 或 '2001:db8::/32')。

使用 CIDR 表示法删除子网规则。地址族会根据地址自动检测。这相当于使用解析后的网络地址、前缀长度和地址族调用 blockList.removeSubnet()。如果指定的子网不存在,则不会有任何操作。

🌐 Removes a subnet rule using CIDR notation. The address family is automatically detected from the address. This is equivalent to calling blockList.removeSubnet() with the parsed network address, prefix length, and family. If the specified subnet does not exist, this is a no-op.