commit 699ceab43081364bd7fedfe43ee02ea5933b86b6
parent 36cd87136738c5f17f67e75099229d54a4b39e29
Author: FIGBERT <figbert@figbert.com>
Date: Sat, 18 May 2024 16:33:12 -0700
Publish site on all interfaces
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
@@ -57,7 +57,7 @@ async fn main() {
let app = Router::new()
.route("/", get(root))
.fallback(|| async { Redirect::to("/") });
- let listener = tokio::net::TcpListener::bind("127.0.0.1:3000")
+ let listener = tokio::net::TcpListener::bind("0.0.0.0:3000")
.await
.unwrap();
axum::serve(listener, app).await.unwrap();