diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-18 11:28:59 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-18 11:28:59 +0100 |
commit | 284254f9cb257bc52cebf3f0a60229f4406b8c02 (patch) | |
tree | 2c89afe866dad143545f589e6b8b4cd26cb14f72 /src | |
parent | d3c1805fadc6cd7c0926d1b22dffe0b58d25c207 (diff) | |
download | gnix-284254f9cb257bc52cebf3f0a60229f4406b8c02.tar gnix-284254f9cb257bc52cebf3f0a60229f4406b8c02.tar.bz2 gnix-284254f9cb257bc52cebf3f0a60229f4406b8c02.tar.zst |
update readme
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 31f8db7..9f7ba22 100644 --- a/src/main.rs +++ b/src/main.rs @@ -140,7 +140,7 @@ async fn serve_http(state: Arc<State>) -> Result<()> { let listen_futs: Result<Vec<()>> = try_join_all(http_config.bind.iter().map(|e| async { let l = TcpListener::bind(*e).await?; let listen_addr = l.local_addr()?; - info!("HTTP listener bound to {}", l.local_addr().unwrap()); + info!("HTTP listener bound to {}/tcp", l.local_addr().unwrap()); loop { let (stream, addr) = l.accept().await.context("accepting connection")?; debug!("connection from {addr}"); @@ -152,9 +152,6 @@ async fn serve_http(state: Arc<State>) -> Result<()> { } })) .await; - - info!("serving http"); - listen_futs?; Ok(()) } @@ -177,7 +174,10 @@ async fn serve_https(state: Arc<State>) -> Result<()> { let listen_futs: Result<Vec<()>> = try_join_all(https_config.bind.iter().map(|e| async { let l = TcpListener::bind(*e).await?; let listen_addr = l.local_addr()?; - info!("HTTPS listener bound to {}", l.local_addr().unwrap()); + info!( + "HTTPS (h1+h2) listener bound to {}/tcp", + l.local_addr().unwrap() + ); loop { let (stream, addr) = l.accept().await.context("accepting connection")?; let state = state.clone(); @@ -220,7 +220,7 @@ async fn serve_h3(state: Arc<State>) -> Result<()> { let cfg = quinn::ServerConfig::with_crypto(cfg.clone()); let endpoint = quinn::Endpoint::server(cfg, *listen_addr)?; let listen_addr = *listen_addr; - info!("HTTPS (h3) listener bound to {listen_addr}"); + info!("HTTPS (h3) listener bound to {listen_addr}/udp"); while let Some(conn) = endpoint.accept().await { let state = state.clone(); tokio::spawn(async move { |