pub const DEFAULT_MTU: usize = 460;Expand description
MTU for the virtual interface. Some networks drop large UDP packets, especially when WireGuard overhead is added. We use a conservative MTU that results in ~600 byte UDP packets after WireGuard encapsulation (MTU + 40 IP/TCP headers + 48 WG overhead ≈ 548 byte UDP). This works around networks that filter large UDP packets.