Browse Source

wireguard: Fix missing fallback for gso

世界 6 ngày trước cách đây
mục cha
commit
0a69621207
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      transport/wireguard/device_system.go

+ 1 - 1
transport/wireguard/device_system.go

@@ -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