tun: always use TUN_MTU_DEFAULT (1500) for TUN interface, ignore ETCP mtu from config
This commit is contained in:
1 parent
fe73274614
commit
ded2b4e38d
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user