diff --git a/net/quic/src/utils.rs b/net/quic/src/utils.rs index c9da4a3f..1d2ab185 100644 --- a/net/quic/src/utils.rs +++ b/net/quic/src/utils.rs @@ -144,6 +144,7 @@ fn configure_client(secure_conn: bool, alpns: Vec) -> Result>(); crypto.alpn_protocols = alpn_protocols; + crypto.key_log = Arc::new(rustls::KeyLogFile::new()); Ok(ClientConfig::new(Arc::new(crypto))) } @@ -234,6 +235,7 @@ fn configure_server( .map(|x| x.as_bytes().to_vec()) .collect::>(); crypto.alpn_protocols = alpn_protocols; + crypto.key_log = Arc::new(rustls::KeyLogFile::new()); let mut server_config = ServerConfig::with_crypto(Arc::new(crypto)); Arc::get_mut(&mut server_config.transport)