modified: src/mobile.rs
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit

This commit is contained in:
Michael Wain 2024-10-05 03:25:38 +03:00
parent aad0dda63b
commit 02495f1d44

View File

@ -4,11 +4,11 @@ use crate::config::{ ServerConfiguration, ClientConfiguration, ObfsProtocol, Ser
use fast32::base32::RFC4648;
use crate::client;
use jni::sys::jint;
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");
client::client_mode(config, tun_fd).await
Runtime::new().unwrap().block_on(client::client_mode(config, tun_fd))
/*let block = async move {
let mut config = tun2::Configuration::default();