4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-11 10:46:28 +00:00

Merge pull request #28 from Arceliar/panic

tun panic if from debug
This commit is contained in:
Neil Alexander
2018-03-03 23:36:18 +00:00
committed by GitHub

View File

@ -231,9 +231,9 @@ func (c *Core) DEBUG_startTunWithMTU(ifname string, iftapmode bool, mtu int) {
if err != nil { if err != nil {
panic(err) 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() { func (c *Core) DEBUG_stopTun() {