Skip to content

Commit

Permalink
accept-conn (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: chandrakanthkannam <[email protected]>
  • Loading branch information
chandrakanthkannam and chandrakanthkannam authored May 14, 2024
1 parent 2571964 commit cb9cf08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit cb9cf08

Please sign in to comment.