From a15b13978f73ca180fc25e56f59b311be0b0b9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 6 Sep 2022 22:52:37 +0800 Subject: [PATCH] Set default tun mtu to 9000 like clash IDK why, maybe faster in a local speed test? --- inbound/tun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inbound/tun.go b/inbound/tun.go index a7b74838..3b304db0 100644 --- a/inbound/tun.go +++ b/inbound/tun.go @@ -44,7 +44,7 @@ func NewTun(ctx context.Context, router adapter.Router, logger log.ContextLogger } tunMTU := options.MTU if tunMTU == 0 { - tunMTU = 1500 + tunMTU = 9000 } var udpTimeout int64 if options.UDPTimeout != 0 {