Skip to content

Commit 222d4b9

Browse files
committed
Remove 'force_wireguard_handshake' on non-Windows
The firewall blocks the pinger in some circumstances
1 parent f7c5e8d commit 222d4b9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ Line wrap the file at 100 chars. Th
4343
- Make Smart Routing override multihop if both are enabled. To manually set the entry relay,
4444
explicitly enable the "Direct only" option in the DAITA settings.
4545
- Update maybenot from 1.1.3 to 2.0.1.
46-
- Test tunnel before ephemeral peer exchange. This is an attempt to fix timeout issues.
4746

4847
#### Windows
4948
- Enable quantum-resistant tunnels by default (when set to `auto`).
49+
- Test tunnel before ephemeral peer exchange. This is an attempt to fix timeout issues.
5050

5151
### Fixed
5252
- Handle network switching better when using WG over Shadowsocks.

talpid-wireguard/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn main() {
1919
// This is useful after updating the WireGuard config, to force a WireGuard handshake. This
2020
// should reduce the number of PQ timeouts.
2121
println!("cargo::rustc-check-cfg=cfg(force_wireguard_handshake)");
22-
if matches!(target_os.as_str(), "linux" | "macos" | "windows") {
22+
if target_os.as_str() == "windows" {
2323
println!("cargo::rustc-cfg=force_wireguard_handshake");
2424
}
2525
}

talpid-wireguard/src/connectivity/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ mod mock;
66
mod monitor;
77
mod pinger;
88

9-
pub use check::{Cancellable, Check};
9+
#[cfg(any(target_os = "android", force_wireguard_handshake))]
10+
pub use check::Cancellable;
11+
pub use check::Check;
1012
pub use error::Error;
1113
pub use monitor::Monitor;

0 commit comments

Comments
 (0)