modified: src/client.rs
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit
This commit is contained in:
parent
f25b1695be
commit
0255e1cfef
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user