diff options
| -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 |
