Skip to content

Commit

Permalink
Further fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Nov 15, 2024
1 parent e7bffe7 commit d20f504
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions talpid-wireguard/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,8 @@ impl WireguardMonitor {
#[cfg(target_os = "android")]
let tunnel = if let Some(exit_peer) = &config.exit_peer {
WgGoTunnel::start_multihop_tunnel(
#[allow(clippy::needless_borrow)]
&config,
exit_peer.clone(),
exit_peer,
log_path,
tun_provider,
routes,
Expand Down
4 changes: 2 additions & 2 deletions talpid-wireguard/src/wireguard_go/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl WgGoTunnel {
state.stop()?;
Self::start_multihop_tunnel(
config,
config.exit_peer.clone().unwrap(),
&config.exit_peer.clone().unwrap().clone(),
log_path.as_deref(),
tun_provider,
routes,
Expand Down Expand Up @@ -325,7 +325,7 @@ impl WgGoTunnel {

pub fn start_multihop_tunnel(
config: &Config,
exit_peer: PeerConfig,
exit_peer: &PeerConfig,
log_path: Option<&Path>,
tun_provider: Arc<Mutex<TunProvider>>,
routes: impl Iterator<Item = IpNetwork>,
Expand Down

0 comments on commit d20f504

Please sign in to comment.