mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Fix bad Name() calls
This commit is contained in:
parent
235b64345e
commit
b27ada9191
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue