Re-implement lazy conns

This commit is contained in:
世界 2024-11-08 10:29:20 +08:00
parent a5cb9f4f5f
commit b1e2673c21
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
6 changed files with 231 additions and 33 deletions

View file

@ -273,8 +273,9 @@ func (t *NativeTun) setRoutes() error {
if err != nil {
return E.Cause(err, "re-add route: ", destination)
}
} else {
return E.Cause(err, "add route: ", destination)
}
return E.Cause(err, "add route: ", destination)
}
}
flushDNSCache()