token start

This commit is contained in:
asxalex 2024-07-15 20:02:12 +08:00
parent 04ffce9b94
commit 152061468a

View File

@ -26,7 +26,7 @@ async fn main() {
mtu: 1290, mtu: 1290,
name: "tau".to_owned(), name: "tau".to_owned(),
tos: 0, tos: 0,
token: cmd.token, token: "".to_owned(),
allow_p2p: true, allow_p2p: true,
}, tx, }, tx,
).await; ).await;
@ -34,7 +34,7 @@ async fn main() {
let _ = rx.recv(); let _ = rx.recv();
let edge = get_edge(); let edge = get_edge();
edge.start("0".to_owned()).await; edge.start(cmd.token).await;
/* /*
tokio::time::sleep(Duration::from_secs(20)).await; tokio::time::sleep(Duration::from_secs(20)).await;