fix: tun create panic

This commit is contained in:
gVisor bot 2022-12-08 11:29:39 +08:00
parent e6c60f0304
commit f8b117007b

View file

@ -532,7 +532,12 @@ func ReCreateTun(tunConf LC.Tun, tcpIn chan<- C.ConnContext, udpIn chan<- C.Pack
return
}
tunLister, err = sing_tun.New(tunConf, tcpIn, udpIn)
lister, err := sing_tun.New(tunConf, tcpIn, udpIn)
if err != nil {
return
}
tunLister = lister
log.Infoln("[TUN] Tun adapter listening at: %s", tunLister.Address())
}