Configure addresses and MTUs, fix bugs

This commit is contained in:
Neil Alexander
2019-11-22 18:34:43 +00:00
parent f5517acc81
commit 235b64345e
2 changed files with 197 additions and 44 deletions

View File

@@ -40,8 +40,8 @@ func (w *tunWriter) _write(b []byte) {
}
})
}
if written-TUN_OFFSET_BYTES != n {
w.tun.log.Errorln("TUN iface write mismatch:", written-TUN_OFFSET_BYTES, "bytes written vs", n, "bytes given")
if written != n {
w.tun.log.Errorln("TUN iface write mismatch:", written, "bytes written vs", n, "bytes given")
}
}