diff options
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | talpid-wireguard/build.rs | 2 | ||||
| -rw-r--r-- | talpid-wireguard/src/connectivity/mod.rs | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f2940ea9a0..5197eecd32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,8 @@ Line wrap the file at 100 chars. Th ### Changed - (Linux and macOS only) Update to DAITA v2. The main difference is that many different machines are provided by relays instead of a bundled list. The bundled `maybenot_machines` file was removed. + +#### Windows - Test tunnel before ephemeral peer exchange. This is an attempt to fix timeout issues. ### Fixed diff --git a/talpid-wireguard/build.rs b/talpid-wireguard/build.rs index 0a7360569d..af3c0ab306 100644 --- a/talpid-wireguard/build.rs +++ b/talpid-wireguard/build.rs @@ -19,7 +19,7 @@ fn main() { // This is useful after updating the WireGuard config, to force a WireGuard handshake. This // should reduce the number of PQ timeouts. println!("cargo::rustc-check-cfg=cfg(force_wireguard_handshake)"); - if matches!(target_os.as_str(), "linux" | "macos" | "windows") { + if target_os.as_str() == "windows" { println!("cargo::rustc-cfg=force_wireguard_handshake"); } } diff --git a/talpid-wireguard/src/connectivity/mod.rs b/talpid-wireguard/src/connectivity/mod.rs index 968263b817..dfd73bcba8 100644 --- a/talpid-wireguard/src/connectivity/mod.rs +++ b/talpid-wireguard/src/connectivity/mod.rs @@ -6,6 +6,8 @@ mod mock; mod monitor; mod pinger; -pub use check::{Cancellable, Check}; +#[cfg(any(target_os = "android", force_wireguard_handshake))] +pub use check::Cancellable; +pub use check::Check; pub use error::Error; pub use monitor::Monitor; |
