change IP to 127.0.0.1
This commit is contained in:
parent
09de558d44
commit
76bee8ad02
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ async fn main() {
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.route("/", get(root));
|
.route("/", get(root));
|
||||||
|
|
||||||
// run our app with hyper, listening globally on port 3000
|
// run our app with hyper, listening globally on port 8200
|
||||||
let listener = tokio::net::TcpListener::bind("[::1]:3000").await.unwrap();
|
let listener = tokio::net::TcpListener::bind("127.0.0.1:8200").await.unwrap();
|
||||||
axum::serve(listener, app).await.unwrap();
|
axum::serve(listener, app).await.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue