rust_p2p_core::stun

Function stun_test_nat

Source
pub async fn stun_test_nat(
    stun_servers: Vec<String>,
    default_interface: Option<&LocalInterface>,
) -> Result<(NatType, Vec<Ipv4Addr>, u16)>
Expand description

Obtain nat information with the option specified interface from the stun servers