MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / resolve_ip_literal

Function resolve_ip_literal

crates/openshell-supervisor-network/src/proxy.rs:2394–2399  ·  view source on GitHub ↗
(host: &str, port: u16)

Source from the content-addressed store, hash-verified

2392}
2393
2394fn 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))]
2402fn parse_hosts_file_for_host(contents: &str, host: &str) -> Vec<IpAddr> {

Callers 1

resolve_socket_addrsFunction · 0.85

Calls 1

Tested by

no test coverage detected