mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-04 20:37:43 +03:00
Improve gVisor UDP
This commit is contained in:
parent
fd850d00e5
commit
bbf542f01a
4 changed files with 28 additions and 10 deletions
|
@ -134,7 +134,7 @@ func (s *System) tunLoop() {
|
|||
s.wintunLoop(winTun)
|
||||
return
|
||||
}
|
||||
packetBuffer := make([]byte, s.mtu + PacketOffset)
|
||||
packetBuffer := make([]byte, s.mtu+PacketOffset)
|
||||
for {
|
||||
n, err := s.tun.Read(packetBuffer)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue