pub fn host_allowed(host: &str, control_port: u16) -> boolExpand description
Whether host is an allowed loopback authority for control_port.
Blocks DNS rebinding: only the exact localhost:<port> / 127.0.0.1:<port>
(and the IPv6 loopback) authorities are accepted.