diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-07 15:00:38 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-07 15:00:38 -0400 |
commit | 430882327e477d419f8b6485361c22e1e2844d32 (patch) | |
tree | 69d10f06c96a6c5d5938c9c9a53bff66bec095a4 /node/NodeConfig.cpp | |
parent | 2fa2796f2abbf48e1f8c6b10a7a0fd99e6985862 (diff) | |
download | infinitytier-430882327e477d419f8b6485361c22e1e2844d32.tar.gz infinitytier-430882327e477d419f8b6485361c22e1e2844d32.zip |
Couple of small fixes, works again with new ID code.
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); |