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
73c8a6eb44
commit
88aafc15d9
@ -126,7 +126,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE
|
||||
break;
|
||||
}
|
||||
rr = rx.recv() => {
|
||||
if let Ok(bytes) = rr {
|
||||
if let Some(bytes) = rr {
|
||||
ltx.send("Write to tun.".as_bytes().to_vec());
|
||||
if let Err(e) = dev_writer.write_all(&bytes).await {
|
||||
ltx.send(format!("Writing error: {:?}", e).as_bytes().to_vec());
|
||||
@ -137,12 +137,12 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE
|
||||
}
|
||||
}
|
||||
rr1 = lrx.recv() => {
|
||||
if let Ok(bytes) = rr1 {
|
||||
if let Some(bytes) = rr1 {
|
||||
FridaLib::traceFromNative(&env, String::from_utf8_lossy(&bytes).to_string());
|
||||
}
|
||||
}
|
||||
rr2 = mx.recv() => {
|
||||
if let Ok(bytes) = rr2 {
|
||||
if let Some(bytes) = rr2 {
|
||||
let s_c = s_cipher.lock().await;
|
||||
|
||||
if s_c.is_some() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user