mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
More root topology stuff.
This commit is contained in:
parent
8c9d3146df
commit
f0ebb0b0f1
4 changed files with 170 additions and 5 deletions
|
@ -23,7 +23,7 @@ int main(int argc,char **argv)
|
|||
std::string buf;
|
||||
|
||||
if (!Utils::readFile("topology.secret",buf)) {
|
||||
std::cout << "Cannot read topology.secret" << std::endl;
|
||||
std::cerr << "Cannot read topology.secret" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
Identity topologyAuthority(buf);
|
||||
|
@ -36,7 +36,7 @@ int main(int argc,char **argv)
|
|||
if ((sn->first.length() == 10)&&(!sn->second)) {
|
||||
buf.clear();
|
||||
if (!Utils::readFile((std::string("supernodes/")+sn->first).c_str(),buf)) {
|
||||
std::cout << "Cannot read supernodes/" << sn->first << std::endl;
|
||||
std::cerr << "Cannot read supernodes/" << sn->first << std::endl;
|
||||
return 1;
|
||||
}
|
||||
supernodes[sn->first] = buf;
|
||||
|
@ -45,7 +45,7 @@ int main(int argc,char **argv)
|
|||
topology["supernodes"] = supernodes.toString();
|
||||
|
||||
if (!topology.sign(topologyAuthority)) {
|
||||
std::cout << "Unable to sign!" << std::endl;
|
||||
std::cerr << "Unable to sign!" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue