fn host_of(addr: &str) -> Result<String, DialError>Expand description
The host part of host:port, with the port removed and brackets stripped.
rsplit_once(':') alone is wrong for [::1]:443: it would cut at the last
colon inside the address and hand back [::1] including the bracket, which
is not a name rustls will accept.