cleanup unused MTU code from tun keystore

This commit is contained in:
Arceliar 2021-05-15 16:23:44 -05:00
parent 5b00273dfc
commit f61507238e
2 changed files with 0 additions and 3 deletions

View File

@ -28,7 +28,6 @@ type keyInfo struct {
key keyArray key keyArray
address address.Address address address.Address
subnet address.Subnet subnet address.Subnet
mtu MTU // TODO use this
timeout *time.Timer // From calling a time.AfterFunc to do cleanup timeout *time.Timer // From calling a time.AfterFunc to do cleanup
} }
@ -114,7 +113,6 @@ func (k *keyStore) update(key ed25519.PublicKey) *keyInfo {
info.key = kArray info.key = kArray
info.address = *address.AddrForKey(ed25519.PublicKey(info.key[:])) info.address = *address.AddrForKey(ed25519.PublicKey(info.key[:]))
info.subnet = *address.SubnetForKey(ed25519.PublicKey(info.key[:])) info.subnet = *address.SubnetForKey(ed25519.PublicKey(info.key[:]))
info.mtu = MTU(^uint16(0)) // TODO
var isOutgoing bool var isOutgoing bool
if k.addrBuffer[info.address] != nil { if k.addrBuffer[info.address] != nil {
isOutgoing = true isOutgoing = true

View File

@ -150,7 +150,6 @@ func (tun *TunAdapter) _start() error {
if tun.MTU() != mtu { if tun.MTU() != mtu {
tun.log.Warnf("Warning: Interface MTU %d automatically adjusted to %d (supported range is 1280-%d)", current.IfMTU, tun.MTU(), MaximumMTU()) tun.log.Warnf("Warning: Interface MTU %d automatically adjusted to %d (supported range is 1280-%d)", current.IfMTU, tun.MTU(), MaximumMTU())
} }
// TODO tun.core.SetMaximumSessionMTU(tun.MTU())
tun.isOpen = true tun.isOpen = true
go tun.read() go tun.read()
go tun.write() go tun.write()