From ce7fbc5de5b39bf71e133a0f70845501784e2c69 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Fri, 11 Oct 2024 05:22:23 +0300 Subject: [PATCH] modified: src/mobile.rs --- src/mobile.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mobile.rs b/src/mobile.rs index e40ca59..60cedf3 100644 --- a/src/mobile.rs +++ b/src/mobile.rs @@ -8,7 +8,8 @@ use tokio::runtime::Runtime; use robusta_jni::jni::JNIEnv; 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)); 0 /*let block = async move {