From cb3b41cd9697a7137db3935fe0c692dd96f8a328 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Fri, 9 Jun 2023 06:29:04 -0400 Subject: [PATCH] fix listener address --- src/html/index.html | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html/index.html b/src/html/index.html index fa741f5..8b8980f 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -45,7 +45,7 @@
GET /{worldID} ▶️ - GET /all ▶️ +

Results are cached for 3 minutes. Requesting faster is a dumb idea.

diff --git a/src/main.rs b/src/main.rs index 7ac1fdf..e4e2720 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ async fn main() { .with_state(sled::open("/tmp/metagame").expect("open")); let addr = SocketAddr::from(( - [127, 0, 0, 1], + [0, 0, 0, 0], env::var("PORT") .unwrap_or("8076".to_string()) .parse()