diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-12-20 18:00:05 +0100 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-12-20 18:00:05 +0100 |
| commit | f2618c6d168aafe59dd83586fa3f62d9d776bd41 (patch) | |
| tree | c2c25d416327693e130ef33d05f265e6af82230e | |
| parent | acd5ea4afc618ccf236e81add8203d7e395b8641 (diff) | |
| download | mullvadvpn-sleep-before-pq-patch-windows.tar.xz mullvadvpn-sleep-before-pq-patch-windows.zip | |
Add sleep 100mssleep-before-pq-patch-windows
| -rw-r--r-- | talpid-wireguard/src/ephemeral.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/talpid-wireguard/src/ephemeral.rs b/talpid-wireguard/src/ephemeral.rs index ffe112cc88..279e68cd2f 100644 --- a/talpid-wireguard/src/ephemeral.rs +++ b/talpid-wireguard/src/ephemeral.rs @@ -256,6 +256,12 @@ async fn request_ephemeral_peer( ) -> std::result::Result<Option<PresharedKey>, CloseMsg> { log::debug!("Requesting ephemeral peer"); + #[cfg(target_os = "windows")] + { + log::info!("Sleeping for 100ms before requesting ephemeral peer"); + tokio::time::sleep(Duration::from_millis(100)).await; + } + let timeout = std::cmp::min( MAX_PSK_EXCHANGE_TIMEOUT, INITIAL_PSK_EXCHANGE_TIMEOUT |
