diff --git a/src/yggdrasil/debug.go b/src/yggdrasil/debug.go index a93b367f..69dfab15 100644 --- a/src/yggdrasil/debug.go +++ b/src/yggdrasil/debug.go @@ -231,9 +231,9 @@ func (c *Core) DEBUG_startTunWithMTU(ifname string, iftapmode bool, mtu int) { if err != nil { panic(err) } - go c.tun.read() + go func() { panic(c.tun.read()) }() } - go c.tun.write() + go func() { panic(c.tun.write()) }() } func (c *Core) DEBUG_stopTun() {