Browse Source

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

pull/1/head
Adam Ierymenko 11 years ago
parent
commit
5fcef91278
  1. 2
      node/Node.cpp

2
node/Node.cpp

@ -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","")));

Loading…
Cancel
Save