Skip to main content

std_resolve

Function std_resolve 

Source
pub fn std_resolve(host: &str, port: u16) -> Result<Vec<SocketAddr>>
Expand description

The production resolver: std’s ToSocketAddrs, with the bracketed IPv6 literal form ([::1], as URLs write it) unwrapped first because ToSocketAddrs does not accept the brackets on a bare host.