Improve gVisor UDP

This commit is contained in:
世界 2023-07-23 14:01:36 +08:00
parent fd850d00e5
commit bbf542f01a
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
4 changed files with 28 additions and 10 deletions

View file

@ -52,7 +52,7 @@ func (l *LWIP) loopIn() {
l.loopInWintun(winTun)
return
}
buffer := make([]byte, int(l.tunMtu) + PacketOffset)
buffer := make([]byte, int(l.tunMtu)+PacketOffset)
for {
n, err := l.tun.Read(buffer)
if err != nil {