From f2375340a4afe256ea065938b456152e269d4ce0 Mon Sep 17 00:00:00 2001 From: Neven Miculinic Date: Tue, 26 Mar 2019 13:58:26 +0100 Subject: [PATCH] Added MTU support --- wg.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wg.go b/wg.go index ac9cfde..b0863b7 100644 --- a/wg.go +++ b/wg.go @@ -112,6 +112,7 @@ func (cfg *Config) Sync(iface string, logger logrus.FieldLogger) error { wgLink := &netlink.GenericLink{ LinkAttrs: netlink.LinkAttrs{ Name: iface, + MTU: cfg.MTU, }, LinkType: "wireguard", }