diff options
Diffstat (limited to 'node/NodeConfig.cpp')
| -rw-r--r-- | node/NodeConfig.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/node/NodeConfig.cpp b/node/NodeConfig.cpp index 4c9f284f..5f593b4d 100644 --- a/node/NodeConfig.cpp +++ b/node/NodeConfig.cpp @@ -78,13 +78,15 @@ NodeConfig::NodeConfig(const RuntimeEnvironment *renv,const char *authToken,unsi if (dot != std::string::npos) { uint64_t nwid = strtoull(d->first.substr(0,dot).c_str(),(char **)0,16); - // TODO: remove legacy code -- this changes the network - // ID for Earth if it's subscribed. Also deletes old - // config file. New one will be created. + // TODO: remove legacy code once out of beta if (nwid == 0x6c92786fee000001ULL) { nwid = 0xbc8f9a8ee3000001ULL; Utils::rm((networksFolder + ZT_PATH_SEPARATOR_S + d->first).c_str()); } + if (nwid == 0xbc8f9a8ee3000001ULL) { + nwid = 0x8D93FBE886000001ULL; + Utils::rm((networksFolder + ZT_PATH_SEPARATOR_S + d->first).c_str()); + } if (nwid > 0) nwids.insert(nwid); |
