mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-26 05:49:59 +00:00
eh
This commit is contained in:
parent
bbc39d7648
commit
a9c4ce38f0
@ -480,9 +480,8 @@ bool ManagedRoute::sync()
|
|||||||
// Detect routes previously applied by ZT that don't exist in the system's route list. Re-apply these.
|
// Detect routes previously applied by ZT that don't exist in the system's route list. Re-apply these.
|
||||||
// NOTE: The following block was added in reaction to the macOS High Sierra 10.13.2 disappearing
|
// NOTE: The following block was added in reaction to the macOS High Sierra 10.13.2 disappearing
|
||||||
// route issue. This comment should be removed once we're sure this block doesn't have any side-effects.
|
// route issue. This comment should be removed once we're sure this block doesn't have any side-effects.
|
||||||
bool found;
|
bool found = false;
|
||||||
std::vector<_RTE> currRoutes(_getRTEs(_target,false));
|
std::vector<_RTE> currRoutes(_getRTEs(_target,false));
|
||||||
found = false;
|
|
||||||
for(std::vector<_RTE>::iterator r(currRoutes.begin());r!=currRoutes.end();++r) {
|
for(std::vector<_RTE>::iterator r(currRoutes.begin());r!=currRoutes.end();++r) {
|
||||||
if(_target == r->target) {
|
if(_target == r->target) {
|
||||||
found = true;
|
found = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user