5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 04:05:39 +00:00
This commit is contained in:
Neil Alexander 2019-11-22 20:16:24 +00:00
parent 3a0870a448
commit baebaabc43
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -21,7 +21,7 @@ import (
// Configures the TUN adapter with the correct IPv6 address and MTU.
func (tun *TunAdapter) setup(ifname string, addr string, mtu int) error {
if ifname == "auto" {
ifname = defaults.GetDefaults().IfName
ifname = defaults.GetDefaults().DefaultIfName
}
var err error
err = doAsSystem(func() {