mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
Fix bug
This commit is contained in:
parent
62a13e87c4
commit
6413e95c48
@ -224,7 +224,7 @@ func (tun *TunAdapter) sendKeyResponse(dest ed25519.PublicKey) {
|
|||||||
tun.core.SendOutOfBand(dest, bs)
|
tun.core.SendOutOfBand(dest, bs)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tun *TunAdapter) maxSessionMTU() MTU {
|
func (tun *TunAdapter) maxSessionMTU() uint64 {
|
||||||
const sessionTypeOverhead = 1
|
const sessionTypeOverhead = 1
|
||||||
return MTU(tun.core.MTU() - sessionTypeOverhead)
|
return tun.core.MTU() - sessionTypeOverhead
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user