summaryrefslogtreecommitdiff
path: root/node/NodeConfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/NodeConfig.cpp')
-rw-r--r--node/NodeConfig.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/node/NodeConfig.cpp b/node/NodeConfig.cpp
index 440511e5..259c1b82 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<uint64_t>::iterator nwid(nwids.begin());nwid!=nwids.end();++nwid) {
try {
SharedPtr<Network> nw(Network::newInstance(_r,*nwid));