Fix gVisor process

This commit is contained in:
世界 2026-07-06 16:55:25 +08:00
parent 46aa536b37
commit c569e3e92f
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 22 additions and 19 deletions

View file

@ -130,7 +130,7 @@ func (m *Mixed) wintunLoop(winTun WinTun) {
func (m *Mixed) batchLoopLinux(linuxTUN LinuxTUN, batchSize int) {
packetBuffers := make([][]byte, batchSize)
writeBuffers := make([][]byte, batchSize)
writeBuffers := make([][]byte, 0, batchSize)
packetSizes := make([]int, batchSize)
for i := range packetBuffers {
packetBuffers[i] = make([]byte, m.mtu+PacketOffset+m.frontHeadroom)