Skip to content

Commit

Permalink
Don't re-apply routes on BSD
Browse files Browse the repository at this point in the history
See issue #1986
  • Loading branch information
laduke committed May 4, 2023
1 parent 00d55fc commit 4b4ed13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osdep/ManagedRoute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,13 +509,13 @@ bool ManagedRoute::sync()
}
}

//if (!_applied.count(leftt)) {
if (leftt && !_applied.count(leftt)) {
_applied[leftt] = !_via;
//_routeCmd("delete",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
_routeCmd("add",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
//_routeCmd("change",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
//}
if (rightt) {
}
if (rightt && !_applied.count(rightt)) {
_applied[rightt] = !_via;
//_routeCmd("delete",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
_routeCmd("add",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
Expand Down

0 comments on commit 4b4ed13

Please sign in to comment.