mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-09 03:52:04 +00:00
fix: tun create panic
This commit is contained in:
parent
78c7b6259c
commit
a9839abd4c
1 changed files with 6 additions and 1 deletions
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue