From 0d499e4fb01084cd7f90eb58a0456f7dd727542d Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Sun, 5 Jul 2020 12:26:15 +0200 Subject: [PATCH] Be more verbose during startup (fixes #12) --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 804fe14..15ccd40 100644 --- a/src/main.rs +++ b/src/main.rs @@ -169,14 +169,19 @@ async fn main() -> Result<(), Error> { } }; let upstream_host = Box::leak(Box::new(upstream_host.to_owned())).as_str(); + println!("Resolving upstream address {:?}", (upstream_host, upstream_port)); let upstream_addr = (upstream_host, upstream_port) .to_socket_addrs() .expect("Failed to parse upstream address") .next() .expect("Failed to resolve upstream address"); + println!("Resolved upstream address: {}", upstream_addr); + println!("Binding to port {}", ws_port); let socket_addr = (Ipv6Addr::from(0), ws_port); let mut server = TcpListener::bind(&socket_addr).await?; + + println!("Waiting for client connections.."); loop { let (client, _) = server.accept().await?; let addr = match client.peer_addr() {