Skip to main content

build_iroh_endpoint

Function build_iroh_endpoint 

Source
pub(super) async fn build_iroh_endpoint(
    secret_key: SecretKey,
    bind_addr: SocketAddr,
    iroh_dns: Option<SafeUrl>,
    iroh_relays: Vec<SafeUrl>,
    alpn: &[u8],
) -> Result<Endpoint>
Expand description

Build and bind an Iroh 1.0 endpoint using guardian P2P policy.