Function mz_ore::netio::resolve_address
source ยท pub async fn resolve_address(
host: &str,
enforce_global: bool,
) -> Result<BTreeSet<IpAddr>, DnsResolutionError>
Available on crate feature
network
only.Expand description
Resolves a host address and ensures it is a global address when enforce_global
is set.
This parameter is useful when connecting to user-defined unverified addresses.