rust-nex/proxy/src/insecure.rs

17 lines
480 B
Rust
Raw Normal View History

2026-01-31 18:53:22 +01:00
use proxy::edge_node_dc_callback;
use proxy_common::{ProxyStartupParam, setup_edge_node_connection};
2026-07-13 23:47:15 +02:00
use rnex_server::with_setup;
2026-01-20 20:26:44 +01:00
#[tokio::main]
async fn main() {
2026-07-09 04:17:05 +02:00
with_setup(async || {
let param = ProxyStartupParam::new(proxy_common::ProxyType::Insecure)
.expect("unable to get startup parameters");
2026-01-20 20:26:44 +01:00
2026-07-09 04:17:05 +02:00
setup_edge_node_connection(&param, edge_node_dc_callback).await;
2026-01-31 18:53:22 +01:00
2026-07-09 04:17:05 +02:00
proxy::start_insecure(param).await;
2026-07-13 23:47:15 +02:00
Ok(())
2026-07-09 04:17:05 +02:00
})
.await;
2026-01-20 20:26:44 +01:00
}