use 0.0.0.0 instead of 127.0.0.1

This commit is contained in:
Zynh0722 2023-11-15 14:18:14 -08:00
parent 6c1fa49350
commit 12219c43c9

View file

@ -97,7 +97,7 @@ async fn main() {
// run our app with hyper
// `axum::Server` is a re-export of `hyper::Server`
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
tracing::debug!("listening on http://{}/", addr);
axum::Server::bind(&addr)
.serve(app.into_make_service())