Skip to main content

is_private_host

Function is_private_host 

Source
pub fn is_private_host(host: &str) -> bool
Expand description

A host that is not on the public internet: loopback, RFC 1918 and link-local addresses, a single-label name, and the names a home network uses (.local, .lan, .home, .internal).