Set default tun mtu to 9000 like clash

IDK why, maybe faster in a local speed test?
This commit is contained in:
世界 2022-09-06 22:52:37 +08:00
parent 0c975db0a6
commit a15b13978f
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -44,7 +44,7 @@ func NewTun(ctx context.Context, router adapter.Router, logger log.ContextLogger
} }
tunMTU := options.MTU tunMTU := options.MTU
if tunMTU == 0 { if tunMTU == 0 {
tunMTU = 1500 tunMTU = 9000
} }
var udpTimeout int64 var udpTimeout int64
if options.UDPTimeout != 0 { if options.UDPTimeout != 0 {