Added MTU support

This commit is contained in:
Neven Miculinic 2019-03-26 13:58:26 +01:00
parent 5c86e5479e
commit f2375340a4

1
wg.go
View File

@ -112,6 +112,7 @@ func (cfg *Config) Sync(iface string, logger logrus.FieldLogger) error {
wgLink := &netlink.GenericLink{ wgLink := &netlink.GenericLink{
LinkAttrs: netlink.LinkAttrs{ LinkAttrs: netlink.LinkAttrs{
Name: iface, Name: iface,
MTU: cfg.MTU,
}, },
LinkType: "wireguard", LinkType: "wireguard",
} }