Skip to main content

host_allowed

Function host_allowed 

Source
pub fn host_allowed(host: &str, control_port: u16) -> bool
Expand 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.