solana_net_utils

Function parse_port_or_addr

Source
pub fn parse_port_or_addr(
    optstr: Option<&str>,
    default_addr: SocketAddr,
) -> SocketAddr