Sort dotgraph links by integer value

This commit is contained in:
Arceliar 2018-07-20 23:02:25 -05:00
parent ab73e3cb90
commit 996a593fa2
2 changed files with 22 additions and 15 deletions

View file

@ -34,7 +34,7 @@ func (tun *tunDevice) setup(ifname string, iftapmode bool, addr string, mtu int)
// that the MTU gets rounded down to 65521 instead of causing a panic.
if iftapmode {
if tun.mtu > 65535-tun_ETHER_HEADER_LENGTH {
tun.mtu = 65535-tun_ETHER_HEADER_LENGTH
tun.mtu = 65535 - tun_ETHER_HEADER_LENGTH
}
}
// Friendly output