mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-17 00:36:52 +01:00
Don't delete routes we never installed on darwin and the BSDs (#1933)
This commit is contained in:
1 parent
42280f04ce
commit
94372f4f51
5 files changed
+36
-4
No files matched your search
@@ -399,7 +399,8 @@ func (t *tun) addRoutes(logErrors bool) error {
|
||||
|
||||
func (t *tun) removeRoutes(routes []Route) error {
|
||||
for _, r := range routes {
|
||||
if !r.Install {
|
||||
if len(r.Via) == 0 || !r.Install {
|
||||
// addRoutes never installs these
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user