fix: IPv6 incompatibility, cargo workspace resolver
This commit is contained in:
parent
76bee8ad02
commit
065cae6f26
2 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
[workspace]
|
||||
workspace.resolver = "2"
|
||||
members = ["crates/*"]
|
||||
default-members = ["crates/server"]
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ async fn main() {
|
|||
.route("/", get(root));
|
||||
|
||||
// run our app with hyper, listening globally on port 8200
|
||||
let listener = tokio::net::TcpListener::bind("127.0.0.1:8200").await.unwrap();
|
||||
let listener = tokio::net::TcpListener::bind("[::]:8200").await.unwrap();
|
||||
axum::serve(listener, app).await.unwrap();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue