Possible Mac route borking fix.

This commit is contained in:
Adam Ierymenko 2021-09-02 15:23:26 -04:00
parent 19391858d4
commit d1c88971ae
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -492,12 +492,12 @@ bool ManagedRoute::sync()
} }
if (!_applied.count(leftt)) { if (!_applied.count(leftt)) {
_applied[leftt] = false; // not ifscoped _applied[leftt] = !_via;
_routeCmd("add",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); _routeCmd("change",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
} }
if ((rightt)&&(!_applied.count(rightt))) { if ((rightt)&&(!_applied.count(rightt))) {
_applied[rightt] = false; // not ifscoped _applied[rightt] = !_via;
_routeCmd("add",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device); _routeCmd("add",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
_routeCmd("change",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device); _routeCmd("change",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
} }