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
c958b82b8f
commit
3dc354e7e3
@ -26,7 +26,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32) {
|
||||
let mut config = tun2::Configuration::default();
|
||||
config.raw_fd(fd).up();
|
||||
|
||||
let mut dev = tun2::create(&config).unwrap();
|
||||
let mut dev = tun2::create_as_async(&config).unwrap();
|
||||
//let (mut dev_reader, mut dev_writer) = dev.split();
|
||||
|
||||
let sock_rec = Arc::new(sock);
|
||||
@ -134,7 +134,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32) {
|
||||
}
|
||||
}
|
||||
}*/
|
||||
let mut buf = vec![0; 256];
|
||||
let mut buf = vec![0; 2048];
|
||||
loop {
|
||||
while let Ok(n) = dev.read(&mut buf) {
|
||||
info!("Read from tun. {:?} bytes", n);
|
||||
|
Loading…
x
Reference in New Issue
Block a user