Changed default port.

This commit is contained in:
ghost 2025-09-11 14:02:12 +02:00
parent f61d7b2ca6
commit 2021a4fab0

View File

@ -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
}