use iroh::Endpoint;
use iroh::relay::RelayUrl;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Configure your endpoint with dedicated relays
let relay_url1: RelayUrl = "RELAY_URL_1".parse()?;
let relay_url2: RelayUrl = "RELAY_URL_2".parse()?;
let endpoint = Endpoint::builder()
.relay_mode(iroh::endpoint::RelayMode::Custom(vec![relay_url1, relay_url2]))
.bind()
.await?;
Ok(())
}