From 6d9d01dae1b8bc97b87eb6367db136f4db6a356c Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sat, 2 Jun 2018 23:29:06 +0100 Subject: [PATCH] Fix IfName='none' --- src/yggdrasil/tun.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yggdrasil/tun.go b/src/yggdrasil/tun.go index 1ecc53b2..ca94713a 100644 --- a/src/yggdrasil/tun.go +++ b/src/yggdrasil/tun.go @@ -37,6 +37,9 @@ func (tun *tunDevice) init(core *Core) { } func (tun *tunDevice) start(ifname string, iftapmode bool, addr string, mtu int) error { + if ifname == "none" { + return nil + } if err := tun.setup(ifname, iftapmode, addr, mtu); err != nil { return err }