modified: src/client.rs
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good

This commit is contained in:
Michael Wain 2024-10-08 02:48:24 +03:00
parent 3c7b1398ce
commit 3b48e75392

View File

@ -59,7 +59,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE
let mut buf = vec![0; 1400]; // mtu
loop {
if let Ok(n) = dev_reader.read(&mut buf) {
llltx.send(format!("Read from tun. {:?}", hex::encode(buf[..n])).as_bytes().to_vec());
llltx.send(format!("Read from tun. {:?}", hex::encode(&buf[..n])).as_bytes().to_vec());
dx.send(buf[..n].to_vec()).unwrap();
}
}