tun: always use TUN_MTU_DEFAULT (1500) for TUN interface, ignore ETCP mtu from config

This commit is contained in:
Evgeny committed 2026-07-01 17:35:53 +03:00
1 parent fe73274614
commit ded2b4e38d
1 file changed
+1 -1
+1 -1
View File
@@ -142,7 +142,7 @@ struct tun_if* tun_init(struct UASYNC* ua, struct utun_config* config)
return NULL;
}
int mtu = config->global.mtu > 0 ? config->global.mtu : TUN_MTU_DEFAULT;
int mtu = TUN_MTU_DEFAULT;
if (!test_mode) {
if (tun_platform_init(tun, tun->ifname, ip_str, mtu) != 0) {