Changes to be committed:
modified: src/client.rs
This commit is contained in:
parent
89ae8ad0f9
commit
8276be01f2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user