diff --git a/clash_lib/src/proxy/tun/inbound.rs b/clash_lib/src/proxy/tun/inbound.rs index 466689f8d..4c54cc131 100644 --- a/clash_lib/src/proxy/tun/inbound.rs +++ b/clash_lib/src/proxy/tun/inbound.rs @@ -45,7 +45,6 @@ async fn handle_inbound_stream( ); }), so_mark: Some(so_mark), - ..Default::default() }; debug!("new tun TCP session assigned: {}", sess); diff --git a/clash_lib/src/proxy/tun/routes/mod.rs b/clash_lib/src/proxy/tun/routes/mod.rs index acacb9103..6ab32c20a 100644 --- a/clash_lib/src/proxy/tun/routes/mod.rs +++ b/clash_lib/src/proxy/tun/routes/mod.rs @@ -85,7 +85,7 @@ pub fn maybe_add_routes(cfg: &TunConfig, tun_name: &str) -> std::io::Result<()> } #[cfg(target_os = "linux")] { - linux::setup_policy_routing(&cfg, &tun_iface)?; + linux::setup_policy_routing(cfg, &tun_iface)?; } } else { for r in &cfg.routes { diff --git a/clash_lib/src/proxy/wg/mod.rs b/clash_lib/src/proxy/wg/mod.rs index 57c6ab3ee..f7dfa47c9 100644 --- a/clash_lib/src/proxy/wg/mod.rs +++ b/clash_lib/src/proxy/wg/mod.rs @@ -173,7 +173,7 @@ impl Handler { send_pair.1, resolver.clone(), self.connector.lock().await.as_ref().cloned(), - &sess, + sess, ) .await .map_err(map_io_error)?;