iroh_relay::server::testing

Function stun_config

Source
pub fn stun_config() -> StunConfig
Available on crate features server and test-utils only.
Expand description

Creates a StunConfig suitable for testing.

To ensure port availability for testing, the port is configured to be assigned by the OS.