Skip to main content

valid_cidr_range_ip

Function valid_cidr_range_ip 

Source
pub(crate) fn valid_cidr_range_ip(denylist: &[IPAddress], ip: IpAddr) -> bool
Expand description

Checks an address against a CIDR denylist.

An IPv4-mapped IPv6 address (::ffff:a.b.c.d) connects to its embedded IPv4 address, so it must pass the IPv4 ranges as well as the IPv6 ones.