Function jormungandr_lib::multiaddr::resolve_dns
source · pub fn resolve_dns(addr: &Multiaddr) -> Result<Multiaddr, Error>
Expand description
Checks if the multiaddr is valid for contacting a p2p peer and resolves DNS components.
Note that DNS resolution is performed synchronously by this function, so this should only be used at initialization.