modified: src/client.rs
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit

This commit is contained in:
Michael Wain 2024-10-13 19:44:47 +03:00
parent f25b1695be
commit 0255e1cfef

View File

@ -52,7 +52,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, close_toke
_ = listen_dr => {
return;
}
rr = dev_reader.read(&mut buf) {
rr = dev_reader.read(&mut buf) => {
if let Ok(n) = rr {
info!("Read from tun."); // hex::encode(&buf[..n])
dx.send(buf[..n].to_vec()).unwrap();
@ -136,7 +136,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, close_toke
info!("Cancellation token has been thrown");
cancel_sr.send(());
cancel_dr.send(());
break;
return;
}
rr = rx.recv() => {
if let Some(bytes) = rr {