Skip to content

Commit

Permalink
Ignore failed ping (since multihop is flaky)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 18, 2024
1 parent a41ffd8 commit 0fa803e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion talpid-wireguard/src/ephemeral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ async fn config_ephemeral_peers_inner(
>,
#[cfg(target_os = "android")] tun_provider: Arc<Mutex<TunProvider>>,
) -> Result<(), CloseMsg> {
// NOTE: This one often fails with multihop on Windows, even though the handshake afterwards
// succeeds. So we try anyway if it fails.
#[cfg(force_wireguard_handshake)]
establish_tunnel_connection(tunnel, connectivity).await?;
let _ = establish_tunnel_connection(tunnel, connectivity).await;

let ephemeral_private_key = PrivateKey::new_from_random();
let close_obfs_sender = close_obfs_sender.clone();
Expand Down

0 comments on commit 0fa803e

Please sign in to comment.