Skip to main content

is_loopback_bind

Function is_loopback_bind 

Source
pub fn is_loopback_bind(addr: &str) -> bool
Expand description

Whether a --bind address keeps the door on this host: an IPv4 address in 127.0.0.0/8, ::1, or localhost. Every other address, 0.0.0.0 and :: among them, and every other hostname, exposes it.