listen on ipv6

This commit is contained in:
Paul Zinselmeyer 2023-06-02 16:05:42 +02:00
parent e2bdda1720
commit 37d2d98526

View file

@ -120,7 +120,7 @@ async fn main() {
.route("/", get(get_index))
.route("/:id", get(get_item).post(post_item).put(post_item))
.with_state(state);
axum::Server::bind(&"0.0.0.0:3000".parse().unwrap())
axum::Server::bind(&"[::]:3000".parse().unwrap())
.serve(app.into_make_service())
.await
.unwrap();