From e5a2949172aeb8a2916328cc89b0fc03fba20372 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Sun, 6 Oct 2024 00:58:33 +0300 Subject: [PATCH] modified: src/main.rs modified: src/mobile.rs --- src/main.rs | 3 +-- src/mobile.rs | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1fba13b..95ff9aa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,8 +28,7 @@ pub unsafe extern "C" fn Java_com_alterdekim_frida_FridaLib_run( ) -> jint { let config = env.get_string(config_b32).unwrap().into(); let close_fd_on_drop = close_fd_on_drop != 0; - mobile::mobile_run(config, close_fd_on_drop, tun_fd); - 0 + mobile::mobile_run(config, close_fd_on_drop, tun_fd) } #[no_mangle] diff --git a/src/mobile.rs b/src/mobile.rs index 6df054b..ee7959d 100644 --- a/src/mobile.rs +++ b/src/mobile.rs @@ -8,7 +8,8 @@ use tokio::runtime::Runtime; pub fn mobile_run(cfg_raw: String, close_fd_on_drop: bool, tun_fd: jint) -> c_int { let config: ClientConfiguration = serde_yaml::from_slice(RFC4648.decode(cfg_raw.as_bytes()).unwrap().as_slice()).expect("Bad client config file structure"); - Runtime::new().unwrap().block_on(client::client_mode(config, tun_fd)) + Runtime::new().unwrap().block_on(client::client_mode(config, tun_fd)); + 0 /*let block = async move { let mut config = tun2::Configuration::default();