Skip to main content

is_private_or_local_host

Function is_private_or_local_host 

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

True when host is loopback, private, link-local, a documentation/ benchmark range, or one of the localhost / *.local name forms. Accepts bracketed IPv6 ([::1]) and is case-insensitive.