From 62c45e7cc72610203a489a8149eb36bb7c5576b6 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 15 Jan 2018 14:39:07 +0000 Subject: [PATCH] Use MTU from interface definition --- src/yggdrasil/tun_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yggdrasil/tun_darwin.go b/src/yggdrasil/tun_darwin.go index efd9845d..df191355 100644 --- a/src/yggdrasil/tun_darwin.go +++ b/src/yggdrasil/tun_darwin.go @@ -83,7 +83,7 @@ func (tun *tunDevice) setupAddress(addr string) error { var ir ifreq copy(ir.ifr_name[:], tun.iface.Name()) - ir.ifru_mtu = 1280 + ir.ifru_mtu = uint32(tun.mtu) tun.core.log.Printf("Interface name: %s", ar.ifra_name) tun.core.log.Printf("Interface IPv6: %s", addr)