pub fn build_binding_host(
requested: Option<&str>,
default: SocketAddr,
) -> SocketAddr
Expand description
This function first tries to parse requested
as the ip:port
host pair.
If that does not work, it tries to parse requested
as a single IP address
and as a :
prefixed port number. Whichever of those fails, is replaced by the corresponding
part from the given default
.