From 8d9464c4140e5882b0fc9276388401514f29e62a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 7 Dec 2017 13:39:25 -0800 Subject: docs, and make RethinkDB controller DB driver upsert into the Controller DB and also update the hostname field. --- controller/DB.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'controller/DB.cpp') 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]; -- cgit v1.2.3