4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-04 13:37:46 +00:00

Move tunDevice into router

This commit is contained in:
Neil Alexander
2018-12-14 17:35:02 +00:00
parent d9b376b3ad
commit 10157483f9
4 changed files with 24 additions and 20 deletions

View File

@ -273,7 +273,7 @@ func (ss *sessions) createSession(theirPermKey *boxPubKey) *sessionInfo {
sinfo.mySesPriv = *priv
sinfo.myNonce = *newBoxNonce()
sinfo.theirMTU = 1280
sinfo.myMTU = uint16(ss.core.tun.mtu)
sinfo.myMTU = uint16(ss.core.router.tun.mtu)
now := time.Now()
sinfo.time = now
sinfo.mtuTime = now