modified: src/client.rs

This commit is contained in:
Michael Wain 2024-10-19 22:56:28 +03:00
parent 618e297039
commit 2cddc0469c
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ mod jni {
use robusta_jni::jni::JNIEnv; use robusta_jni::jni::JNIEnv;
use crate::config::ClientConfiguration; use crate::config::ClientConfiguration;
use crate::client::android::AndroidClient; use crate::client::android::AndroidClient;
use crate::client::general::VpnClient;
use crate::TUN_QUIT; use crate::TUN_QUIT;
use std::fs::File; use std::fs::File;

View File

@ -428,7 +428,7 @@ pub mod desktop {
let s_a: SocketAddr = self.client_config.server.endpoint.parse().unwrap(); let s_a: SocketAddr = self.client_config.server.endpoint.parse().unwrap();
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
configure_routes(&s_a.ip().to_string(), self.s_interface); configure_routes(&s_a.ip().to_string(), self.s_interface.clone());
client.start(sock).await; client.start(sock).await;