summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2026-04-20 17:00:04 +0200
committerDavid Lönnhager <david.l@mullvad.net>2026-04-20 17:57:12 +0200
commit7cea5dc3d80cf0cb326cda4be9307a63acdd1824 (patch)
treed1182fd7e3cb7562b9eded1ee92c2b7694d01137
parente4788d5bc7624d337225a2e0377f60fdcdc1c90c (diff)
downloadmullvadvpn-7cea5dc3d80cf0cb326cda4be9307a63acdd1824.tar.xz
mullvadvpn-7cea5dc3d80cf0cb326cda4be9307a63acdd1824.zip
Set MTU in Windows tun provider
-rw-r--r--talpid-tunnel/src/tun_provider/windows.rs1
-rw-r--r--talpid-wireguard/src/gotatun/mod.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/talpid-tunnel/src/tun_provider/windows.rs b/talpid-tunnel/src/tun_provider/windows.rs
index 98479bc0f5..4be38b0877 100644
--- a/talpid-tunnel/src/tun_provider/windows.rs
+++ b/talpid-tunnel/src/tun_provider/windows.rs
@@ -80,6 +80,7 @@ impl WindowsTunProvider {
const ADAPTER_GUID: u128 = 0xAFE4_3773_E1F8_4EBB_8536_576A_B86A_FE9A;
builder.config.tun_name(ADAPTER_NAME);
+ builder.config.mtu(self.config.mtu);
builder
.config
.platform_config(|cfg: &mut tun08::PlatformConfig| {
diff --git a/talpid-wireguard/src/gotatun/mod.rs b/talpid-wireguard/src/gotatun/mod.rs
index ef20c9b8f7..cda21dc88c 100644
--- a/talpid-wireguard/src/gotatun/mod.rs
+++ b/talpid-wireguard/src/gotatun/mod.rs
@@ -571,8 +571,6 @@ fn get_tunnel_for_userspace(
tun_config.ipv6_gateway = config.ipv6_gateway;
tun_config.mtu = config.mtu;
- // FIXME: mtu is not set
-
let _ = routes;
#[cfg(windows)]