server listen publicly

This commit is contained in:
Cooper Quintin
2024-02-29 15:19:25 -08:00
parent 924b7c9302
commit 63e9c53dd4
3 changed files with 4 additions and 2 deletions
+1 -1
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...");