Commit 47230e73 by qlintonger xeno

setup-first-done+12

parent 52096436
...@@ -11,7 +11,7 @@ use tokio::net::TcpListener; ...@@ -11,7 +11,7 @@ use tokio::net::TcpListener;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
let addr = "127.0.0.1:8080"; let addr = "0.0.0.0:8080";
let listener = TcpListener::bind(addr).await.unwrap(); let listener = TcpListener::bind(addr).await.unwrap();
while let Ok((stream, _)) = listener.accept().await { while let Ok((stream, _)) = listener.accept().await {
tokio::spawn(handle_client(stream)); tokio::spawn(handle_client(stream));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment