From ab875491c0c075588676b6e83d37f595a0c78ae6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 19 Apr 2018 15:52:59 +0200 Subject: [PATCH] Do not hard code MTU default --- device.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/device.go b/device.go index 5adf33a..3ad53c9 100644 --- a/device.go +++ b/device.go @@ -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)