From c883cdf7c67269a333109644ed379cbad5711a67 Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Tue, 30 Apr 2024 17:45:13 -0700 Subject: [PATCH] daemon: bind to 0.0.0.0 127.0.0.1 is loopback, so rayhunter wasn't accessible via wifi before. --- bin/src/daemon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/src/daemon.rs b/bin/src/daemon.rs index 892e914..4d65521 100644 --- a/bin/src/daemon.rs +++ b/bin/src/daemon.rs @@ -55,7 +55,7 @@ async fn run_server( .route("/", get(|| async { Redirect::permanent("/index.html") })) .route("/*path", get(serve_static)) .with_state(state); - let addr = SocketAddr::from(([127, 0, 0, 1], config.port)); + let addr = SocketAddr::from(([0, 0, 0, 0], config.port)); let listener = TcpListener::bind(&addr).await.unwrap(); task_tracker.spawn(async move { info!("The orca is hunting for stingrays...");