This commit is contained in:
Maple 2026-01-20 20:26:44 +01:00
commit fc94f655b2
43 changed files with 1957 additions and 694 deletions

8
proxy/src/insecure.rs Normal file
View file

@ -0,0 +1,8 @@
use rnex_core::common::setup;
#[tokio::main]
async fn main() {
setup();
proxy::start_insecure(ProxyStartupParam::new()).await;
}

11
proxy/src/lib.rs Normal file
View file

@ -0,0 +1,11 @@
use cfg_if::cfg_if;
cfg_if! {
if #[cfg(feature = "prudpv0")]{
pub use prudpv0::*;
} else if #[cfg(feature = "prudpv1")] {
pub use prudpv1::*;
} else {
compile_error!("no proxy type has been set");
}
}

7
proxy/src/secure.rs Normal file
View file

@ -0,0 +1,7 @@
use rnex_core::common::setup;
#[tokio::main]
async fn main() {
setup();
proxy::start_secure(ProxyStartupParam::new()).await;
}