From de552838393427d5a493ef4eb934d967709a1bbd Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Sun, 25 Aug 2024 09:17:04 +0200 Subject: [PATCH] server: listen on 0.0.0.0 --- skycraft/server/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skycraft/server/src/main.rs b/skycraft/server/src/main.rs index b6e9b72..00fc0ec 100644 --- a/skycraft/server/src/main.rs +++ b/skycraft/server/src/main.rs @@ -49,7 +49,7 @@ async fn main() -> tide::Result<()> { let mut app = tide::new(); app.at("/api/system/:seed").get(get_system); app.at("/api/body/:seed").get(get_body); - app.listen("127.0.0.1:8080").await?; + app.listen("0.0.0.0:8080").await?; Ok(()) } @@ -259,4 +259,4 @@ async fn get_system(_req: Request<()>) -> tide::Result { })?) .build(); Ok(response) -} \ No newline at end of file +}