mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-17 20:46:54 +02:00
Add code to automatically join Earth if no network memberships are defined.
This commit is contained in:
parent
f5717f4427
commit
e98fd3dba0
1 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,13 @@ NodeConfig::NodeConfig(const RuntimeEnvironment *renv,const char *authToken)
|
|||
}
|
||||
}
|
||||
|
||||
// TODO:
|
||||
// This might go away eventually. This causes the LAN called Earth to be
|
||||
// automatically joined if there are no other networks. This is for backward
|
||||
// compatibility with the expectations of previous alpha users.
|
||||
if (nwids.empty())
|
||||
nwids.insert(0x6c92786fee000001ULL);
|
||||
|
||||
for(std::set<uint64_t>::iterator nwid(nwids.begin());nwid!=nwids.end();++nwid) {
|
||||
try {
|
||||
SharedPtr<Network> nw(Network::newInstance(_r,*nwid));
|
||||
|
|
Loading…
Add table
Reference in a new issue