summaryrefslogtreecommitdiff
path: root/controller/DB.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-12-07 13:39:25 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-12-07 13:39:25 -0800
commit8d9464c4140e5882b0fc9276388401514f29e62a (patch)
tree3d8429fb4a40793649ee77367545dfd1f18544a5 /controller/DB.cpp
parentada611d597c935f95a807db8ac7bf01e386937fa (diff)
downloadinfinitytier-8d9464c4140e5882b0fc9276388401514f29e62a.tar.gz
infinitytier-8d9464c4140e5882b0fc9276388401514f29e62a.zip
docs, and make RethinkDB controller DB driver upsert into the Controller DB and also update the hostname field.
Diffstat (limited to 'controller/DB.cpp')
-rw-r--r--controller/DB.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/controller/DB.cpp b/controller/DB.cpp
index 2f9a4a89..2f09205b 100644
--- a/controller/DB.cpp
+++ b/controller/DB.cpp
@@ -27,9 +27,10 @@ using json = nlohmann::json;
namespace ZeroTier {
-DB::DB(EmbeddedNetworkController *const nc,const Address &myAddress,const char *path) :
+DB::DB(EmbeddedNetworkController *const nc,const Identity &myId,const char *path) :
_controller(nc),
- _myAddress(myAddress),
+ _myId(myId),
+ _myAddress(myId.address()),
_path((path) ? path : "")
{
char tmp[32];