iroh_net::endpoint

Function make_server_config

Source
pub fn make_server_config(
    secret_key: &SecretKey,
    alpn_protocols: Vec<Vec<u8>>,
    transport_config: Arc<TransportConfig>,
    keylog: bool,
) -> Result<ServerConfig>
Expand description

Creates a ServerConfig with the given secret key and limits.