From 802817b3e2fb5e5035e9d0948fee8b376b6b8909 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Mon, 2 Sep 2024 19:20:55 +0200 Subject: [PATCH] bind to 0.0.0.0 instead of localhost --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a25d16c..7b481d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -146,7 +146,7 @@ async fn main() -> std::io::Result<()> { .service(actix_files::Files::new("/assets", "./assets").show_files_listing()) .default_service(web::route().to(summary)) }) - .bind("127.0.0.1:8080")? + .bind("0.0.0.0:8080")? .run() .await; println!("yuya stopped");