mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 09:46:13 +00:00
Ignore old root-topology if present -- fix for upgrading on Linux and possibly elsewhere.
This commit is contained in:
parent
2aa1b5d9b7
commit
5fcef91278
@ -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…
x
Reference in New Issue
Block a user