Переглянути джерело

Possible Mac route borking fix.

Adam Ierymenko 4 роки тому
батько
коміт
d1c88971ae
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      osdep/ManagedRoute.cpp

+ 2 - 2
osdep/ManagedRoute.cpp

@@ -492,12 +492,12 @@ bool ManagedRoute::sync()
 	}
 
 	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("change",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
 	}
 	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("change",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
 	}