Fix TUN/TAP for non-Darwin platforms

This commit is contained in:
Neil Alexander 2019-03-28 15:32:01 +00:00
parent eb22ed44ac
commit 03bc7bbcd6
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
4 changed files with 32 additions and 32 deletions

View file

@ -28,6 +28,6 @@ func (tun *TunAdapter) setup(ifname string, iftapmode bool, addr string, mtu int
// We don't know how to set the IPv6 address on an unknown platform, therefore
// write about it to stdout and don't try to do anything further.
func (tun *TunAdapter) setupAddress(addr string) error {
tun.core.log.Warnln("Platform not supported, you must set the address of", tun.iface.Name(), "to", addr)
tun.log.Warnln("Platform not supported, you must set the address of", tun.iface.Name(), "to", addr)
return nil
}