From 8276be01f2bb8ebfaba3f0e043314531763a3d25 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Sun, 11 Aug 2024 00:16:06 +0300 Subject: [PATCH] Changes to be committed: modified: src/client.rs --- src/client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index adc2a23..57967fd 100644 --- a/src/client.rs +++ b/src/client.rs @@ -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();