From 2021a4fab0a12686d0604d5bb481409246c54eeb Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 11 Sep 2025 14:02:12 +0200 Subject: [PATCH] Changed default port. --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d16cc31..025d525 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,13 +26,14 @@ async fn main() -> std::io::Result<()> { broadcaster: Arc::new(tx) }; - println!("Server is running on http://localhost:8080"); + println!("Server is running on http://localhost:3478"); + HttpServer::new(move || { App::new() .app_data(web::Data::new(app_state.clone())) .route("/ws", web::get().to(websocket_handler)) }) - .bind("127.0.0.1:8080")? + .bind("127.0.0.1:3478")? .run() .await }