mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Configure addresses and MTUs, fix bugs
This commit is contained in:
parent
f5517acc81
commit
235b64345e
2 changed files with 197 additions and 44 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue