Testing voice udp server

This commit is contained in:
2026-08-26 13:19:34 +02:00
parent 5486dfce68
commit ccbe3c10f0
3 changed files with 133 additions and 1 deletions
+5
View File
@@ -3,6 +3,7 @@ pub mod data;
pub mod protocol;
pub mod server;
pub mod types;
pub mod vc_server;
use std::{
net::{IpAddr, Ipv4Addr, SocketAddr},
@@ -26,6 +27,8 @@ use crate::server::Server;
async fn main() -> anyhow::Result<()> {
let server = Server::new().await?;
let udp_server = tokio::spawn(server.clone().start_udp_server());
let cors = CorsLayer::new()
.allow_origin(Any)
.allow_methods(Any)
@@ -46,6 +49,8 @@ async fn main() -> anyhow::Result<()> {
axum::serve(listener, app).await?;
udp_server.abort();
Ok(())
}