mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-26 01:21:37 +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…
Reference in New Issue
Block a user