(host: &str, port: u16)
| 2392 | } |
| 2393 | |
| 2394 | fn resolve_ip_literal(host: &str, port: u16) -> Option<Vec<SocketAddr>> { |
| 2395 | normalize_host_lookup_key(host) |
| 2396 | .parse::<IpAddr>() |
| 2397 | .ok() |
| 2398 | .map(|ip| vec![SocketAddr::new(ip, port)]) |
| 2399 | } |
| 2400 | |
| 2401 | #[cfg(any(target_os = "linux", test))] |
| 2402 | fn parse_hosts_file_for_host(contents: &str, host: &str) -> Vec<IpAddr> { |
no test coverage detected