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-04 22:54:39 +03:00
parent a2ce3afddb
commit 13942a5050

View File

@ -37,7 +37,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32) {
let cipher_shared: Arc<Mutex<Option<x25519_dalek::SharedSecret>>> = Arc::new(Mutex::new(None));
tokio::spawn(async move {
/* tokio::spawn(async move {
while let Ok(bytes) = rx.recv() {
info!("Write to tun.");
dev_writer.write_all(&bytes).unwrap();
@ -133,5 +133,11 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32) {
warn!("There is no shared_secret in main loop");
}
}
}*/
let mut buf = vec![0; 8192];
while let Ok(n) = dev_reader.read(&mut buf) {
info!("Read from tun. {:?} bytes", n);
}
info!("end.");
}