mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-12-24 00:37:49 +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")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user