From 37d2d985262677c9f9e668bb241bba0d0fadd7a2 Mon Sep 17 00:00:00 2001 From: Paul Z Date: Fri, 2 Jun 2023 16:05:42 +0200 Subject: [PATCH] listen on ipv6 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 42671c4..e2840ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();