Skip to content

Commit 05176d5

Browse files
committed
fixup: sorry linux
1 parent a122a93 commit 05176d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

talpid-wireguard/src/ephemeral.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ pub async fn config_ephemeral_peers(
9696
retry_attempt,
9797
obfuscator,
9898
close_obfs_sender,
99+
#[cfg(not(target_os = "android"))]
100+
connectivity,
99101
#[cfg(target_os = "android")]
100102
tun_provider,
101103
)
@@ -114,7 +116,7 @@ async fn config_ephemeral_peers_inner(
114116
#[cfg(target_os = "android")] tun_provider: Arc<Mutex<TunProvider>>,
115117
) -> Result<(), CloseMsg> {
116118
#[cfg(not(target_os = "android"))]
117-
reestablish_tunnel_connection(tunnel, connectivity).await?;
119+
establish_tunnel_connection(tunnel, connectivity).await?;
118120

119121
let ephemeral_private_key = PrivateKey::new_from_random();
120122
let close_obfs_sender = close_obfs_sender.clone();
@@ -155,7 +157,7 @@ async fn config_ephemeral_peers_inner(
155157
.await?;
156158

157159
#[cfg(not(target_os = "android"))]
158-
reestablish_tunnel_connection(tunnel, connectivity).await?;
160+
establish_tunnel_connection(tunnel, connectivity).await?;
159161

160162
let entry_ephemeral_peer = request_ephemeral_peer(
161163
retry_attempt,
@@ -295,7 +297,7 @@ async fn reconfigure_tunnel(
295297
/// force a WireGuard handshake.
296298
/// This should reduce the number of PQ timeouts.
297299
#[cfg(not(target_os = "android"))]
298-
async fn reestablish_tunnel_connection(
300+
async fn establish_tunnel_connection(
299301
tunnel: &Arc<AsyncMutex<Option<TunnelType>>>,
300302
connectivity: &mut connectivity::Check<connectivity::Cancellable>,
301303
) -> Result<(), CloseMsg> {

0 commit comments

Comments
 (0)