iroh_net::test_utils

Function run_relay_server_with

Source
pub async fn run_relay_server_with(
    stun: Option<StunConfig>,
) -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.
Expand description

Runs a relay server.

stun can be set to None to disable stun, or set to Some StunConfig, to enable stun on a specific socket.

The return value is similar to run_relay_server.