Skip to main content

address_denied

Function address_denied 

Source
pub fn address_denied(
    addresses: &CompiledPolicy<'_>,
    ip: IpAddr,
) -> Option<Decision>
Expand description

The deny rules of addresses (compiled from address_policy) that match ip, if any: a deny naming an address holds for every name that resolves to it. Matched in canonical text form, and for a NAT64, IPv4-compatible, 6to4 or Teredo address also as the IPv4 addresses it reaches. Allow rules never widen anything here; an address no deny rule matches gives None.