Skip to main content

is_loopback_host

Function is_loopback_host 

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

True if host refers to a loopback interface (or localhost).

Used to decide whether running without an auth token is safe: loopback binds are only reachable from the local machine, non-loopback binds are not.