5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 10:40:27 +00:00

include offset in expected bytes written

This commit is contained in:
Arceliar 2019-11-24 15:01:20 -06:00
parent 6560aac1e9
commit f6f9b3ef76

View File

@ -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")
}
}