docs, and make RethinkDB controller DB driver upsert into the Controller DB and also update the hostname field.

This commit is contained in:
Adam Ierymenko 2017-12-07 13:39:25 -08:00
parent ada611d597
commit 8d9464c414
8 changed files with 60 additions and 15 deletions

View file

@ -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];