5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 04:05:39 +00:00
This commit is contained in:
Neil Alexander 2021-05-16 20:05:22 +01:00
parent 62a13e87c4
commit 6413e95c48

View File

@ -224,7 +224,7 @@ func (tun *TunAdapter) sendKeyResponse(dest ed25519.PublicKey) {
tun.core.SendOutOfBand(dest, bs)
}
func (tun *TunAdapter) maxSessionMTU() MTU {
func (tun *TunAdapter) maxSessionMTU() uint64 {
const sessionTypeOverhead = 1
return MTU(tun.core.MTU() - sessionTypeOverhead)
return tun.core.MTU() - sessionTypeOverhead
}