V0 #1

Closed
RusticMaple wants to merge 105 commits from v0 into main
4 changed files with 4 additions and 1 deletions
Showing only changes of commit c9c4a575b5 - Show all commits
red binder 2026-04-12 22:35:07 +02:00

View file

@ -31,7 +31,7 @@ const RNEX_DEFAULT_PORT: u16 = match u16::from_str_radix(env!("RNEX_DEFAULT_PORT
Err(_) => panic!("unable to get default port from env"),
};
const RNEX_ACCESS_KEY: &'static str = env!("RNEX_ACCESS_KEY");
pub const RNEX_ACCESS_KEY: &'static str = env!("RNEX_ACCESS_KEY");
#[derive(Error, Debug)]
pub enum Error {

View file

@ -1,5 +1,6 @@
use hmac::Hmac;
use md5::Md5;
use proxy_common::RNEX_ACCESS_KEY;
pub const ACCESS_KEY: &str = RNEX_ACCESS_KEY;
pub type HmacMd5 = Hmac<Md5>;

View file

@ -19,6 +19,7 @@ use std::time::Duration;
use tokio::net::TcpStream;
use tokio::task;
use tokio::time::sleep;
use proxy_common::RNEX_ACCESS_KEY;
pub async fn start() {
/*let conn = tokio::net::TcpStream::connect(&*EDGE_NODE_HOLDER)

View file

@ -21,6 +21,7 @@ use std::time::Duration;
use tokio::net::TcpStream;
use tokio::task;
use tokio::time::sleep;
use proxy_common::RNEX_ACCESS_KEY;
pub async fn start() {
let (router_secure, _) = Router::new(SocketAddrV4::new(*OWN_IP_PRIVATE, *SERVER_PORT))