summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-12-07 16:04:41 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-12-07 16:04:41 -0800
commitaeb1794be19904ca8a2ff2fb7d1307d4b8d24031 (patch)
treea2507bdac32c590678a53967af3a9384fd2638a1
parentdae728124ea5d5c1d2e68e90d6f6b0faf3f3693b (diff)
downloadinfinitytier-aeb1794be19904ca8a2ff2fb7d1307d4b8d24031.tar.gz
infinitytier-aeb1794be19904ca8a2ff2fb7d1307d4b8d24031.zip
Comment out storage of secret ID in RethinkDb.
-rw-r--r--controller/RethinkDB.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/controller/RethinkDB.cpp b/controller/RethinkDB.cpp
index a1064f37..a56df0eb 100644
--- a/controller/RethinkDB.cpp
+++ b/controller/RethinkDB.cpp
@@ -324,10 +324,10 @@ RethinkDB::RethinkDB(EmbeddedNetworkController *const nc,const Identity &myId,co
{
char publicId[1024];
- char secretId[1024];
+ //char secretId[1024];
char hostname[1024];
this->_myId.toString(false,publicId);
- this->_myId.toString(true,secretId);
+ //this->_myId.toString(true,secretId);
if (gethostname(hostname,sizeof(hostname)) != 0) {
hostname[0] = (char)0;
} else {
@@ -340,7 +340,7 @@ RethinkDB::RethinkDB(EmbeddedNetworkController *const nc,const Identity &myId,co
}
controllerRecord["id"] = this->_myAddressStr.c_str();
controllerRecord["publicIdentity"] = publicId;
- controllerRecord["secretIdentity"] = secretId;
+ //controllerRecord["secretIdentity"] = secretId;
if (hostname[0])
controllerRecord["clusterHost"] = hostname;
controllerRecord["vMajor"] = ZEROTIER_ONE_VERSION_MAJOR;