oops
This commit is contained in:
parent
fc39e3295b
commit
c9c4a575b5
4 changed files with 4 additions and 1 deletions
|
|
@ -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"),
|
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)]
|
#[derive(Error, Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
use hmac::Hmac;
|
use hmac::Hmac;
|
||||||
use md5::Md5;
|
use md5::Md5;
|
||||||
|
use proxy_common::RNEX_ACCESS_KEY;
|
||||||
|
|
||||||
pub const ACCESS_KEY: &str = RNEX_ACCESS_KEY;
|
pub const ACCESS_KEY: &str = RNEX_ACCESS_KEY;
|
||||||
pub type HmacMd5 = Hmac<Md5>;
|
pub type HmacMd5 = Hmac<Md5>;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use std::time::Duration;
|
||||||
use tokio::net::TcpStream;
|
use tokio::net::TcpStream;
|
||||||
use tokio::task;
|
use tokio::task;
|
||||||
use tokio::time::sleep;
|
use tokio::time::sleep;
|
||||||
|
use proxy_common::RNEX_ACCESS_KEY;
|
||||||
|
|
||||||
pub async fn start() {
|
pub async fn start() {
|
||||||
/*let conn = tokio::net::TcpStream::connect(&*EDGE_NODE_HOLDER)
|
/*let conn = tokio::net::TcpStream::connect(&*EDGE_NODE_HOLDER)
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ use std::time::Duration;
|
||||||
use tokio::net::TcpStream;
|
use tokio::net::TcpStream;
|
||||||
use tokio::task;
|
use tokio::task;
|
||||||
use tokio::time::sleep;
|
use tokio::time::sleep;
|
||||||
|
use proxy_common::RNEX_ACCESS_KEY;
|
||||||
|
|
||||||
pub async fn start() {
|
pub async fn start() {
|
||||||
let (router_secure, _) = Router::new(SocketAddrV4::new(*OWN_IP_PRIVATE, *SERVER_PORT))
|
let (router_secure, _) = Router::new(SocketAddrV4::new(*OWN_IP_PRIVATE, *SERVER_PORT))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue