diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-04-19 15:52:59 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-04-19 15:54:51 +0200 |
commit | ab875491c0c075588676b6e83d37f595a0c78ae6 (patch) | |
tree | c30cd9395986e424e7b7aad84f42db9dcf6d2f4a /device.go | |
parent | ac9912345b4da5034ea93f5f245ea2ce04815bd5 (diff) |
Do not hard code MTU default
Diffstat (limited to 'device.go')
-rw-r--r-- | device.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -259,8 +259,8 @@ func NewDevice(tun TUNDevice, logger *Logger) *Device { device.tun.device = tun mtu, err := device.tun.device.MTU() if err != nil { - logger.Error.Println("Trouble determining MTU, assuming 1420:", err) - mtu = 1420 + logger.Error.Println("Trouble determining MTU, assuming default:", err) + mtu = DefaultMTU } device.tun.mtu = int32(mtu) |