things
This commit is contained in:
parent
4d4fc6c7bf
commit
fc94f655b2
43 changed files with 1957 additions and 694 deletions
8
proxy/src/insecure.rs
Normal file
8
proxy/src/insecure.rs
Normal 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
11
proxy/src/lib.rs
Normal 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
7
proxy/src/secure.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use rnex_core::common::setup;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
setup();
|
||||
proxy::start_secure(ProxyStartupParam::new()).await;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue