mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-15 20:37:36 +02:00
gottem
This commit is contained in:
@@ -268,7 +268,7 @@ func (r *Offload) Read(p []wire.TunPacket, mem []byte) (int, error) {
|
|||||||
if n <= 0 {
|
if n <= 0 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if p, err = r.decodeRead(p, mem, n); err != nil {
|
if p, err = r.decodeRead(p, mem[rxOff:], n); err != nil {
|
||||||
// Drop this packet and stop the drain; we'd rather hand off
|
// Drop this packet and stop the drain; we'd rather hand off
|
||||||
// what we have than keep spinning here.
|
// what we have than keep spinning here.
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user