Unified server binary (vnox-serverd) combining: - Gateway (TCP, auth, channels, sessions, SQLite) - Voice-node (UDP relay, Opus, jitter buffer) Standalone gateway (vnox-gateway) and voice-node (vnox-voice-node) preserved as sub-crates.
12 lines
311 B
Rust
12 lines
311 B
Rust
use anyhow::Result;
|
|
use vnox_voice_node::{load_config, runner};
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<()> {
|
|
tracing_subscriber::fmt()
|
|
.with_env_filter(std::env::var("VNOX_LOG").unwrap_or_else(|_| "info".into()))
|
|
.init();
|
|
|
|
let config = load_config()?;
|
|
runner::run(config).await
|
|
}
|