Fixed MTU method for linux TUN interface

Updated the TUN interface
Added the "MTU" method for the linux implementation of the TUN interface
This commit is contained in:
Mathias Hall-Andersen
2017-07-11 22:48:58 +02:00
parent c273078376
commit 86707cbc88
5 changed files with 69 additions and 30 deletions

View File

@@ -64,7 +64,7 @@ func NewDevice(tun TUNDevice, logLevel int) *Device {
defer device.mutex.Unlock()
device.log = NewLogger(logLevel)
device.mtu = tun.MTU()
// device.mtu = tun.MTU()
device.peers = make(map[NoisePublicKey]*Peer)
device.indices.Init()
device.ratelimiter.Init()