Browse Source

Comment out storage of secret ID in RethinkDb.

Adam Ierymenko 7 years ago
parent
commit
aeb1794be1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      controller/RethinkDB.cpp

+ 3 - 3
controller/RethinkDB.cpp

@@ -324,10 +324,10 @@ RethinkDB::RethinkDB(EmbeddedNetworkController *const nc,const Identity &myId,co
 
 
 			{
 			{
 				char publicId[1024];
 				char publicId[1024];
-				char secretId[1024];
+				//char secretId[1024];
 				char hostname[1024];
 				char hostname[1024];
 				this->_myId.toString(false,publicId);
 				this->_myId.toString(false,publicId);
-				this->_myId.toString(true,secretId);
+				//this->_myId.toString(true,secretId);
 				if (gethostname(hostname,sizeof(hostname)) != 0) {
 				if (gethostname(hostname,sizeof(hostname)) != 0) {
 					hostname[0] = (char)0;
 					hostname[0] = (char)0;
 				} else {
 				} else {
@@ -340,7 +340,7 @@ RethinkDB::RethinkDB(EmbeddedNetworkController *const nc,const Identity &myId,co
 				}
 				}
 				controllerRecord["id"] = this->_myAddressStr.c_str();
 				controllerRecord["id"] = this->_myAddressStr.c_str();
 				controllerRecord["publicIdentity"] = publicId;
 				controllerRecord["publicIdentity"] = publicId;
-				controllerRecord["secretIdentity"] = secretId;
+				//controllerRecord["secretIdentity"] = secretId;
 				if (hostname[0])
 				if (hostname[0])
 					controllerRecord["clusterHost"] = hostname;
 					controllerRecord["clusterHost"] = hostname;
 				controllerRecord["vMajor"] = ZEROTIER_ONE_VERSION_MAJOR;
 				controllerRecord["vMajor"] = ZEROTIER_ONE_VERSION_MAJOR;