Skip to main content

classify_ip

Function classify_ip 

Source
pub fn classify_ip(addr: IpAddr) -> Option<BlockClass>
Expand description

Synchronous helper — reads the input string as an IP if possible, classifies. Used by tests + by the host-resolver path (each resolved address is fed in here).