Skip to main content

ip_is_blocked

Function ip_is_blocked 

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

Addresses that are not a public host: loopback, private, link-local (cloud metadata), carrier-grade NAT, unspecified, multicast, reserved and documentation ranges, and IPv6 forms that carry an IPv4 address. Also the widget fetch’s test (widget_net.rs).