listen on 0.0.0.0

This commit is contained in:
41666 2022-11-27 18:52:15 -05:00
parent 667dc33249
commit 1da3cd2cef

View file

@ -91,7 +91,7 @@ async fn main() {
.unwrap_or("8000".to_string())
.parse()
.unwrap();
let addr = SocketAddr::from(([127, 0, 0, 1], port));
let addr = SocketAddr::from(([0, 0, 0, 0], port));
println!("Listening on http://{}", addr);