pub fn derive_libp2p_multiaddr(addr: &String) -> Result<Multiaddr>
Expand description

Parse a Libp2p Multiaddr from a string. The input string should be in the format hostname:port or ip:port. This function derives a Multiaddr from the input string.

This borrows from Rust’s implementation of to_socket_addrs but will only warn if the domain does not yet resolve.

§Errors

  • If the input string is not in the correct format