mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-01-23 17:26:34 +00:00
Set default tun mtu to 9000 like clash
IDK why, maybe faster in a local speed test?
This commit is contained in:
parent
0c975db0a6
commit
a15b13978f
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue