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:
parent
c273078376
commit
86707cbc88
5 changed files with 69 additions and 30 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue