修改jni模块

This commit is contained in:
lubeilin
2023-08-30 21:54:30 +08:00
parent aeebbd18fd
commit 96fb8c881d
3 changed files with 27 additions and 14 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ impl VntUtil {
}
#[cfg(any(target_os = "android"))]
tun_handler::start(vnt_status_manager.worker("android tun_handler"), channel_sender.clone(), device_reader, device_writer.clone(),
igmp_server.clone(), current_device.clone(), in_external_route, ip_proxy_map.clone(), cipher.clone(), config.parallel).await;
igmp_server.clone(), current_device.clone(), in_external_route, ip_proxy_map.clone(), client_cipher.clone(),self.server_cipher.clone(), config.parallel).await;
//外部数据接收处理
let channel_recv_handler = ChannelDataHandler::new(current_device.clone(), device_list.clone(),
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct VntSync {
impl VntUtilSync {
pub fn new(config: Config) -> io::Result<VntUtilSync> {
let runtime = tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap();
let runtime = tokio::runtime::Builder::new_multi_thread().enable_all().build()?;
let vnt_util = runtime.block_on(VntUtil::new(config))?;
Ok(VntUtilSync {
vnt_util,