diff options
-rw-r--r-- | server/src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index 3436e2c..8e44f7a 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -17,11 +17,10 @@ use tracing::Span; async fn main() { let app = create_app().await; - let addr: String = - std::env::var("ALLOWED_HOST").unwrap_or_else(|_| "localhost:3000".to_string()); + let addr = std::env::var("ALLOWED_HOST").unwrap_or_else(|_| "127.0.0.1:3000".to_string()); tracing::info!("Listening on {}", addr); - axum::Server::bind(&"127.0.0.1:3000".parse().unwrap()) + axum::Server::bind(&addr.parse().unwrap()) .serve(app.into_make_service()) .await .unwrap(); |