mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 06:05:06 +03:00
Fix bug
This commit is contained in:
parent
62a13e87c4
commit
6413e95c48
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue