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