wireguard: Fix missing fallback for gso

This commit is contained in:
世界 2026-02-13 00:50:08 +08:00
parent 58ccf82e0b
commit 0a69621207
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -116,7 +116,7 @@ func (w *systemDevice) Start() error {
w.options.Logger.Info("started at ", w.options.Name)
w.device = tunInterface
batchTUN, isBatchTUN := tunInterface.(tun.LinuxTUN)
if isBatchTUN {
if isBatchTUN && batchTUN.BatchSize() > 1 {
w.batchDevice = batchTUN
}
w.events <- wgTun.EventUp