pub fn is_loopback_host(host: &str) -> bool { host.eq_ignore_ascii_case("localhost") || host .parse::() .is_ok_and(|ip| ip.is_loopback()) }