mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 18:15:24 +00:00
include offset in expected bytes written
This commit is contained in:
parent
6560aac1e9
commit
f6f9b3ef76
@ -40,7 +40,7 @@ func (w *tunWriter) _write(b []byte) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if written != n {
|
if written != n+TUN_OFFSET_BYTES {
|
||||||
w.tun.log.Errorln("TUN iface write mismatch:", written, "bytes written vs", n, "bytes given")
|
w.tun.log.Errorln("TUN iface write mismatch:", written, "bytes written vs", n, "bytes given")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user