diff --git a/compliance-dashboard/src/infrastructure/server.rs b/compliance-dashboard/src/infrastructure/server.rs index a48e978..f28fc05 100644 --- a/compliance-dashboard/src/infrastructure/server.rs +++ b/compliance-dashboard/src/infrastructure/server.rs @@ -45,7 +45,8 @@ pub fn server_start(app: fn() -> Element) -> Result<(), DashboardError> { .with_expiry(tower_sessions::Expiry::OnInactivity(Duration::hours(24))) .with_signed(key); - let addr = dioxus_cli_config::fullstack_address_or_localhost(); + let port = dioxus_cli_config::server_port().unwrap_or(8080); + let addr = std::net::SocketAddr::from(([0, 0, 0, 0], port)); let listener = tokio::net::TcpListener::bind(addr) .await .map_err(|e| DashboardError::Other(format!("Failed to bind: {e}")))?;