use send_buffer instead
All checks were successful
Build and Test / fast-racing-neo (push) Successful in 4m58s
Build and Test / minecraft-wiiu (push) Successful in 5m12s
Build and Test / splatoon-testfire (push) Successful in 5m14s
Build and Test / wii-u-chat (push) Successful in 5m20s
Build and Test / splatoon (push) Successful in 5m22s
Build and Test / sonic-transformed (push) Successful in 5m22s
Build and Test / super-mario-maker (push) Successful in 5m28s
Build and Test / mario-tennis (push) Successful in 5m29s
Build and Test / friends (push) Successful in 5m34s
Build and Test / wii-sports-club (push) Successful in 5m35s
Build and Test / puyopuyo (push) Successful in 5m37s

This commit is contained in:
red binder 2026-07-21 22:25:12 +02:00
commit aff5d7c71d

View file

@ -11,7 +11,6 @@ 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)
@ -111,7 +110,7 @@ pub async fn start(param: ProxyStartupParam) {
}
},
_ = sleep(Duration::from_secs(10)) => {
stream.write_all(&[0,0,0,0,0].to_vec()).await.ok();
stream.send_buffer(&[0,0,0,0,0].to_vec()).await.ok();
}
}
}