fix: resolve #16 by fix cs2dumper importing

Resolved #16, fixes URLs and module imports for cs2dumper.
Warning: Untested.
This commit is contained in:
Janek
2024-04-03 17:59:53 +02:00
parent d31c3f8ee5
commit 212c88efaa
9 changed files with 6511 additions and 299 deletions

View File

@@ -60,9 +60,8 @@ pub async fn run(path: PathBuf, port: u16, data_lock: Arc<RwLock<RadarData>>) ->
.with_state(AppState { data_lock });
let address = format!("0.0.0.0:{}", port);
axum::Server::bind(&address.parse()?)
.serve(app.into_make_service())
let listener = tokio::net::TcpListener::bind(address).await?;
axum::serve(listener, app.into_make_service())
.await?;
Ok(())