🔊 (ptth_quic relay server) log listen address

main
(on company time) 2022-12-16 13:56:31 -06:00
parent 996543cecc
commit 24dac2cc39
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ pub async fn main (opt: Opt) -> anyhow::Result <()>
let listen_addr = opt.listen_addr.unwrap_or_else (|| String::from ("0.0.0.0:30380")).parse ()?; let listen_addr = opt.listen_addr.unwrap_or_else (|| String::from ("0.0.0.0:30380")).parse ()?;
let (endpoint, server_cert) = make_server_endpoint (listen_addr)?; let (endpoint, server_cert) = make_server_endpoint (listen_addr)?;
println! ("Base64 cert: {}", base64::encode (&server_cert)); println! ("Base64 cert: {}", base64::encode (&server_cert));
println! ("Listening on {}", listen_addr);
tokio::fs::create_dir_all ("ptth_quic_output").await?; tokio::fs::create_dir_all ("ptth_quic_output").await?;
tokio::fs::write ("ptth_quic_output/quic_server.crt", &server_cert).await?; tokio::fs::write ("ptth_quic_output/quic_server.crt", &server_cert).await?;