[−][src]Function async_ip::get_ip
pub async fn get_ip(
prefer_ipv6: bool,
client: Option<Client>
) -> Result<IpAddr, IpRetrieveError>
Asynchronously gets the IP address of this node. If prefer_ipv6
is true, then the client will
attempt to get the IP address; however, if the client is using an IPv4 address, that will be returned
instead.
If a reqwest client is supplied, this function will use that client to get the information. None by default.