daemon: bind to 0.0.0.0

127.0.0.1 is loopback, so rayhunter wasn't accessible via wifi
before.
This commit is contained in:
Will Greenberg
2024-04-30 17:45:13 -07:00
parent 5dc717ae4e
commit c883cdf7c6

View File

@@ -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...");