Skip to main content

is_private_ip

Function is_private_ip 

Source
pub fn is_private_ip(ip: IpAddr) -> bool
Expand description

True for an address that is not reachable from the public internet: loopback, RFC 1918, shared (CGNAT, RFC 6598), link-local, and IPv6 unique-local or link-local addresses (including IPv4-mapped forms).