Changes to be committed:

modified:   src/client.rs
This commit is contained in:
Michael Wain 2024-08-11 00:16:06 +03:00
parent 89ae8ad0f9
commit 8276be01f2

View File

@ -68,12 +68,11 @@ pub async fn client_mode(remote_addr: &str) -> io::Result<()> {
config.packet_information(true);
});
let tun_device = Arc::new(Mutex::new(tun::create(&config).unwrap()));
#[cfg(target_os = "linux")]
configure_routes();
let tun_device = Arc::new(Mutex::new(tun::create(&config).unwrap()));
let sock = Arc::new(Mutex::new(UdpSocket::bind("0.0.0.0:59611").await?));
let sock_main = sock.clone();