Added MTU support
This commit is contained in:
parent
5c86e5479e
commit
f2375340a4
1
wg.go
1
wg.go
@ -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",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user