When IfName is none, start queue goroutine, otherwise iprwc blocks and some handlers don't run

This commit is contained in:
Neil Alexander 2024-10-20 21:27:20 +01:00
parent 0b9c8bd020
commit b20ad846a1
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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
} }