We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 460ea57 commit e2711e7Copy full SHA for e2711e7
talpid-wireguard/src/lib.rs
@@ -50,7 +50,7 @@ mod connectivity_check;
50
mod logging;
51
mod ping_monitor;
52
mod stats;
53
-#[cfg(target_os = "linux")]
+#[cfg(any(target_os = "linux", target_os = "macos"))]
54
mod unix;
55
#[cfg(wireguard_go)]
56
mod wireguard_go;
@@ -411,7 +411,7 @@ impl WireguardMonitor {
411
412
if verified_mtu != config.mtu {
413
log::warn!("Lowering MTU from {} to {verified_mtu}", config.mtu);
414
- #[cfg(target_os = "linux")]
+ #[cfg(any(target_os = "linux", target_os = "macos"))]
415
let res = unix::set_mtu(&iface_name_clone, verified_mtu);
416
#[cfg(windows)]
417
let res = talpid_tunnel::network_interface::set_mtu(
0 commit comments