Ignore old root-topology if present -- fix for upgrading on Linux and possibly elsewhere.

This commit is contained in:
Adam Ierymenko 2015-08-25 09:42:37 -07:00
parent 2aa1b5d9b7
commit 5fcef91278

View File

@ -136,7 +136,7 @@ Node::Node(
if (!Topology::authenticateRootTopology(rt))
rt.clear();
}
if (!rt.size())
if ((!rt.size())||(!rt.contains("rootservers")))
rt.fromString(ZT_DEFAULTS.defaultRootTopology);
}
RR->topology->setRootServers(Dictionary(rt.get("rootservers","")));