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
a2ce3afddb
commit
13942a5050
@ -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.");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user