modified: src/client.rs
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good
This commit is contained in:
parent
5b5f621cac
commit
118c550c2b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user