fix sending internal ping to console
All checks were successful
Build and Test / wii-u-chat (push) Successful in 4m56s
Build and Test / sonic-transformed (push) Successful in 5m34s
Build and Test / minecraft-wiiu (push) Successful in 5m34s
Build and Test / fast-racing-neo (push) Successful in 5m35s
Build and Test / splatoon (push) Successful in 5m34s
Build and Test / mario-tennis (push) Successful in 5m44s
Build and Test / splatoon-testfire (push) Successful in 5m59s
Build and Test / puyopuyo (push) Successful in 6m9s
Build and Test / wii-sports-club (push) Successful in 6m12s
Build and Test / super-mario-maker (push) Successful in 6m15s
Build and Test / friends (push) Successful in 6m28s
All checks were successful
Build and Test / wii-u-chat (push) Successful in 4m56s
Build and Test / sonic-transformed (push) Successful in 5m34s
Build and Test / minecraft-wiiu (push) Successful in 5m34s
Build and Test / fast-racing-neo (push) Successful in 5m35s
Build and Test / splatoon (push) Successful in 5m34s
Build and Test / mario-tennis (push) Successful in 5m44s
Build and Test / splatoon-testfire (push) Successful in 5m59s
Build and Test / puyopuyo (push) Successful in 6m9s
Build and Test / wii-sports-club (push) Successful in 6m12s
Build and Test / super-mario-maker (push) Successful in 6m15s
Build and Test / friends (push) Successful in 6m28s
This commit is contained in:
parent
d2e2aabe59
commit
7fff9ed3ac
1 changed files with 6 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ use tokio::net::TcpStream;
|
|||
use tokio::task;
|
||||
use tokio::time::sleep;
|
||||
use tracing::error;
|
||||
use tokio::io::AsyncWriteExt;
|
||||
|
||||
pub async fn start(param: ProxyStartupParam) {
|
||||
let (router_secure, _) = Router::new(param.self_private)
|
||||
|
|
@ -101,12 +102,16 @@ pub async fn start(param: ProxyStartupParam) {
|
|||
}
|
||||
};
|
||||
|
||||
if data == [0,0,0,0,0] {
|
||||
continue;
|
||||
}
|
||||
|
||||
if conn.send(data).await == None{
|
||||
break 'a;
|
||||
}
|
||||
},
|
||||
_ = sleep(Duration::from_secs(10)) => {
|
||||
conn.send([0,0,0,0,0].to_vec()).await;
|
||||
stream.write_all(&[0,0,0,0,0].to_vec()).await.ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue