mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
Ignore old root-topology if present -- fix for upgrading on Linux and possibly elsewhere.
This commit is contained in:
parent
2aa1b5d9b7
commit
5fcef91278
1 changed files with 1 additions and 1 deletions
|
@ -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","")));
|
||||||
|
|
Loading…
Add table
Reference in a new issue