4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-04 12:27:47 +00:00
This commit is contained in:
Neil Alexander
2019-03-28 19:09:19 +00:00
parent fd0b614f9c
commit dd05a7f2a8
5 changed files with 49 additions and 45 deletions

View File

@ -277,7 +277,7 @@ func (ss *sessions) createSession(theirPermKey *crypto.BoxPubKey) *sessionInfo {
sinfo.mySesPriv = *priv
sinfo.myNonce = *crypto.NewBoxNonce()
sinfo.theirMTU = 1280
sinfo.myMTU = uint16(ss.core.router.tun.MTU())
sinfo.myMTU = uint16(ss.core.router.adapter.MTU())
now := time.Now()
sinfo.time = now
sinfo.mtuTime = now