From e98fd3dba0ddce9c8b28400dae5d5220c038da43 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 7 Aug 2013 14:19:50 -0400 Subject: [PATCH] Add code to automatically join Earth if no network memberships are defined. --- node/NodeConfig.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node/NodeConfig.cpp b/node/NodeConfig.cpp index 440511e5b..259c1b822 100644 --- a/node/NodeConfig.cpp +++ b/node/NodeConfig.cpp @@ -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::iterator nwid(nwids.begin());nwid!=nwids.end();++nwid) { try { SharedPtr nw(Network::newInstance(_r,*nwid));