mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-01-10 09:05:41 +00:00
When IfName
is none
, start queue goroutine, otherwise iprwc
blocks and some handlers don't run
This commit is contained in:
parent
0b9c8bd020
commit
b20ad846a1
@ -125,6 +125,7 @@ func (tun *TunAdapter) _start() error {
|
|||||||
if tun.config.name == "none" || tun.config.name == "dummy" {
|
if tun.config.name == "none" || tun.config.name == "dummy" {
|
||||||
tun.log.Debugln("Not starting TUN as ifname is none or dummy")
|
tun.log.Debugln("Not starting TUN as ifname is none or dummy")
|
||||||
tun.isEnabled = false
|
tun.isEnabled = false
|
||||||
|
go tun.queue()
|
||||||
go tun.write()
|
go tun.write()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user