This commit is contained in:
Maple 2026-01-27 14:44:10 +01:00
commit 1b802ff33f
15 changed files with 379 additions and 74 deletions

View file

@ -7,6 +7,7 @@ edition = "2024"
tokio = { version = "1.47.0", features = ["full"] }
prudpv0 = { path = "../prudpv0", optional = true }
prudpv1 = { path = "../prudpv1", optional = true }
proxy-common = { path = "../proxy-common" }
cfg-if = "1.0.4"
rnex-core = { path = "../rnex-core", version = "0.1.1" }

View file

@ -1,8 +1,13 @@
use proxy_common::ProxyStartupParam;
use rnex_core::common::setup;
#[tokio::main]
async fn main() {
setup();
proxy::start_insecure(ProxyStartupParam::new()).await;
proxy::start_insecure(
ProxyStartupParam::new(proxy_common::ProxyType::Insecure)
.expect("unable to get startup parameters"),
)
.await;
}

View file

@ -1,7 +1,12 @@
use proxy_common::ProxyStartupParam;
use rnex_core::common::setup;
#[tokio::main]
async fn main() {
setup();
proxy::start_secure(ProxyStartupParam::new()).await;
proxy::start_secure(
ProxyStartupParam::new(proxy_common::ProxyType::Secure)
.expect("unable to get startup parameters"),
)
.await;
}