fix: flush default interface when tun config hasn't change

This commit is contained in:
wwqgtxx
2022-10-10 09:32:42 +08:00
parent 66e5136ba0
commit 2c236387b7
2 changed files with 34 additions and 26 deletions

View File

@ -348,6 +348,9 @@ func ReCreateTun(tunConf *config.Tun, tcpIn chan<- C.ConnContext, udpIn chan<- *
}()
if !hasTunConfigChange(tunConf) {
if tunLister != nil {
tunLister.FlushDefaultInterface()
}
return
}