use 0.0.0.0 instead of 127.0.0.1

main
Zynh0722 2023-11-15 14:18:14 -08:00
parent 6c1fa49350
commit 12219c43c9
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ async fn main() {
// run our app with hyper // run our app with hyper
// `axum::Server` is a re-export of `hyper::Server` // `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); tracing::debug!("listening on http://{}/", addr);
axum::Server::bind(&addr) axum::Server::bind(&addr)
.serve(app.into_make_service()) .serve(app.into_make_service())