Fix bad Name() calls

This commit is contained in:
Neil Alexander 2019-11-22 18:39:27 +00:00
parent 235b64345e
commit b27ada9191
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 8 additions and 8 deletions

View file

@ -33,7 +33,7 @@ func (tun *TunAdapter) setupAddress(addr string) error {
if err != nil {
return err
}
nlintf, err := netlink.LinkByName(tun.iface.Name())
nlintf, err := netlink.LinkByName(tun.Name())
if err != nil {
return err
}
@ -47,7 +47,7 @@ func (tun *TunAdapter) setupAddress(addr string) error {
return err
}
// Friendly output
tun.log.Infof("Interface name: %s", tun.iface.Name())
tun.log.Infof("Interface name: %s", tun.Name())
tun.log.Infof("Interface IPv6: %s", addr)
tun.log.Infof("Interface MTU: %d", tun.mtu)
return nil