new mtu setting and const for default

This commit is contained in:
Ryan Huber
2019-12-12 18:01:46 +00:00
parent f03d895ebf
commit 9981510554
3 changed files with 21 additions and 1 deletions

View File

@ -245,6 +245,7 @@ func (c Tun) Activate() error {
nr := netlink.Route{
LinkIndex: link.Attrs().Index,
Dst: r.route,
MTU: r.mtu,
Scope: unix.RT_SCOPE_LINK,
}