diff --git a/prototypes/quic_demo/src/bin/quic_demo_relay_server.rs b/prototypes/quic_demo/src/bin/quic_demo_relay_server.rs index 064c928..dcb5d5e 100644 --- a/prototypes/quic_demo/src/bin/quic_demo_relay_server.rs +++ b/prototypes/quic_demo/src/bin/quic_demo_relay_server.rs @@ -29,7 +29,9 @@ async fn main () -> anyhow::Result <()> { let listen_addr = opt.listen_addr.unwrap_or_else (|| String::from ("0.0.0.0:30380")).parse ()?; let (mut incoming, server_cert) = make_server_endpoint (listen_addr)?; println! ("Base64 cert: {}", base64::encode (&server_cert)); - tokio::fs::write ("quic_server.crt", &server_cert).await?; + + tokio::fs::create_dir_all ("ptth_quic_output").await?; + tokio::fs::write ("ptth_quic_output/quic_server.crt", &server_cert).await?; let relay_state = Arc::new (RelayState::default ());