Small platform-specific changes
modified: src/client.rs
This commit is contained in:
parent
ed64abbb0c
commit
a5bcf93491
@ -351,6 +351,11 @@ pub mod desktop {
|
|||||||
.tun_name("tun0")
|
.tun_name("tun0")
|
||||||
.up();
|
.up();
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
config.platform_config(|config| {
|
||||||
|
config.ensure_root_privileges(true);
|
||||||
|
});
|
||||||
|
|
||||||
info!("SSS: {:?}", &self.client_config.server.endpoint);
|
info!("SSS: {:?}", &self.client_config.server.endpoint);
|
||||||
let sock = UdpSocket::bind(("0.0.0.0", 0)).await.unwrap();
|
let sock = UdpSocket::bind(("0.0.0.0", 0)).await.unwrap();
|
||||||
sock.connect(&self.client_config.server.endpoint).await.unwrap();
|
sock.connect(&self.client_config.server.endpoint).await.unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user