Move tunDevice into router

This commit is contained in:
Neil Alexander 2018-12-14 17:35:02 +00:00
parent d9b376b3ad
commit 10157483f9
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
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