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-05 20:06:38 +03:00
parent 5b5f621cac
commit 118c550c2b

View File

@ -140,12 +140,12 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32) -> i32 {
}
}
}*/
let mut f = unsafe { File::from_raw_fd(&fd) };
let mut f = unsafe { File::from_raw_fd(fd) };
let mut buf = vec![0; 1400];
while let Ok(n) = f.read(&mut buf) {
info!("Read from tun. {:?} bytes", n);
return n.into();
return n as i32;
}
info!("end.");
-2