diff --git a/talpid-wireguard/src/ephemeral.rs b/talpid-wireguard/src/ephemeral.rs index daecd78dbad9..1563bfc0e952 100644 --- a/talpid-wireguard/src/ephemeral.rs +++ b/talpid-wireguard/src/ephemeral.rs @@ -96,6 +96,8 @@ pub async fn config_ephemeral_peers( retry_attempt, obfuscator, close_obfs_sender, + #[cfg(not(target_os = "android"))] + connectivity, #[cfg(target_os = "android")] tun_provider, ) @@ -114,7 +116,7 @@ async fn config_ephemeral_peers_inner( #[cfg(target_os = "android")] tun_provider: Arc>, ) -> Result<(), CloseMsg> { #[cfg(not(target_os = "android"))] - reestablish_tunnel_connection(tunnel, connectivity).await?; + establish_tunnel_connection(tunnel, connectivity).await?; let ephemeral_private_key = PrivateKey::new_from_random(); let close_obfs_sender = close_obfs_sender.clone(); @@ -155,7 +157,7 @@ async fn config_ephemeral_peers_inner( .await?; #[cfg(not(target_os = "android"))] - reestablish_tunnel_connection(tunnel, connectivity).await?; + establish_tunnel_connection(tunnel, connectivity).await?; let entry_ephemeral_peer = request_ephemeral_peer( retry_attempt, @@ -295,7 +297,7 @@ async fn reconfigure_tunnel( /// force a WireGuard handshake. /// This should reduce the number of PQ timeouts. #[cfg(not(target_os = "android"))] -async fn reestablish_tunnel_connection( +async fn establish_tunnel_connection( tunnel: &Arc>>, connectivity: &mut connectivity::Check, ) -> Result<(), CloseMsg> {