Ignore old root-topology if present -- fix for upgrading on Linux and possibly elsewhere.
This commit is contained in:
@@ -136,7 +136,7 @@ Node::Node(
|
|||||||
if (!Topology::authenticateRootTopology(rt))
|
if (!Topology::authenticateRootTopology(rt))
|
||||||
rt.clear();
|
rt.clear();
|
||||||
}
|
}
|
||||||
if (!rt.size())
|
if ((!rt.size())||(!rt.contains("rootservers")))
|
||||||
rt.fromString(ZT_DEFAULTS.defaultRootTopology);
|
rt.fromString(ZT_DEFAULTS.defaultRootTopology);
|
||||||
}
|
}
|
||||||
RR->topology->setRootServers(Dictionary(rt.get("rootservers","")));
|
RR->topology->setRootServers(Dictionary(rt.get("rootservers","")));
|
||||||
|
|||||||
Reference in New Issue
Block a user