From cb9cf08dbbcb8dab2e14593b7862f65c1598bfde Mon Sep 17 00:00:00 2001 From: chandrakanthkannam <49658217+chandrakanthkannam@users.noreply.github.com> Date: Tue, 14 May 2024 15:04:43 -0500 Subject: [PATCH] accept-conn (#10) Co-authored-by: chandrakanthkannam --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 51ffd52..32b081f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,10 +40,10 @@ async fn main() { Ok(c) => c.parse().unwrap_or(48786), Err(_) => 48786, }; - let addr = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), port); + let addr = SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), port); let listener = tokio::net::TcpListener::bind(addr).await.unwrap(); let cmd_state: CmdState = Arc::new(Mutex::new(HashMap::new())); - info!("Listening on {}", addr); + info!("Listening on {}", port); axum::serve(listener, app(cmd_state.clone())).await.unwrap(); }