🔊 (ptth_quic relay server) log listen address
parent
996543cecc
commit
24dac2cc39
|
@ -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 (endpoint, server_cert) = make_server_endpoint (listen_addr)?;
|
||||
println! ("Base64 cert: {}", base64::encode (&server_cert));
|
||||
println! ("Listening on {}", listen_addr);
|
||||
|
||||
tokio::fs::create_dir_all ("ptth_quic_output").await?;
|
||||
tokio::fs::write ("ptth_quic_output/quic_server.crt", &server_cert).await?;
|
||||
|
|
Loading…
Reference in New Issue