modified: src/mobile.rs
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good

This commit is contained in:
Michael Wain 2024-10-11 05:22:23 +03:00
parent 946af19d5b
commit ce7fbc5de5

View File

@ -8,7 +8,8 @@ use tokio::runtime::Runtime;
use robusta_jni::jni::JNIEnv; use robusta_jni::jni::JNIEnv;
pub fn mobile_run(cfg_raw: String, close_fd_on_drop: bool, tun_fd: i32, env: &JNIEnv) -> c_int { pub fn mobile_run(cfg_raw: String, close_fd_on_drop: bool, tun_fd: i32, env: &JNIEnv) -> c_int {
let config: ClientConfiguration = serde_yaml::from_slice(RFC4648.decode(cfg_raw.as_bytes()).unwrap().as_slice()).expect("Bad client config file structure");
let config: ClientConfiguration = serde_yaml::from_slice(hex::decode(cfg_raw).unwrap().as_slice()).expect("Bad client config file structure");
Runtime::new().unwrap().block_on(client::client_mode(config, tun_fd, env)); Runtime::new().unwrap().block_on(client::client_mode(config, tun_fd, env));
0 0
/*let block = async move { /*let block = async move {