This commit is contained in:
asxalex 2024-07-15 20:03:27 +08:00
parent 152061468a
commit f069d7c2c0
2 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,6 @@ async fn main() {
let _guard = log::init_log(); let _guard = log::init_log();
let cmd = CommandLineInput::from_args(); let cmd = CommandLineInput::from_args();
println!("cmd.token = {}", cmd.token);
let (tx, rx) = std::sync::mpsc::channel(); let (tx, rx) = std::sync::mpsc::channel();
let _ = run_sdlan( let _ = run_sdlan(

View File

@ -192,7 +192,7 @@ pub async fn async_main(
match ipaddr.ip() { match ipaddr.ip() {
IpAddr::V4(v4) => { IpAddr::V4(v4) => {
let ip = v4.into(); let ip = v4.into();
println!("outer ip is {} => {}", v4, ip); // println!("outer ip is {} => {}", v4, ip);
edge.outer_ip_v4.store(ip, Ordering::Relaxed); edge.outer_ip_v4.store(ip, Ordering::Relaxed);
} }
_other => { _other => {
@ -212,7 +212,7 @@ pub async fn async_main(
pub_key: edge.rsa_pubkey.clone(), pub_key: edge.rsa_pubkey.clone(),
token, token,
}; };
debug!("send register super: {:?}", register_super); // debug!("send register super: {:?}", register_super);
let packet_id = edge.get_next_packet_id(); let packet_id = edge.get_next_packet_id();
let data = encode_to_tcp_message( let data = encode_to_tcp_message(
Some(register_super), Some(register_super),