query_external_ip
Get the external IPv4 and IPv6 of the computer by querying online services.
Example
use Consensus;
async
Get the external IPv4 and IPv6 of the computer by querying online services.
use query_external_ip::Consensus;
async fn get_ip() {
match Consensus::get().await {
Ok(c) => println!("{:#?}", c),
Err(err) => println!("{}", err),
}
}