Improve gVisor UDP
This commit is contained in:
parent
fd850d00e5
commit
bbf542f01a
4 changed files with 28 additions and 10 deletions
|
|
@ -51,7 +51,7 @@ func (e *DarwinEndpoint) Attach(dispatcher stack.NetworkDispatcher) {
|
|||
}
|
||||
|
||||
func (e *DarwinEndpoint) dispatchLoop() {
|
||||
packetBuffer := make([]byte, e.tun.mtu + 4)
|
||||
packetBuffer := make([]byte, e.tun.mtu+4)
|
||||
for {
|
||||
n, err := e.tun.tunFile.Read(packetBuffer)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue