Plumb through roots via API.

This commit is contained in:
Adam Ierymenko 2019-09-19 09:47:12 -07:00
parent 624efde7e4
commit 3ceb2257e5
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
9 changed files with 2480 additions and 2070 deletions

View file

@ -25,7 +25,7 @@
#include <mutex>
#include <condition_variable>
#include "../include/ZeroTierOne.h"
#include "../include/ZeroTierCore.h"
#include "../node/Constants.hpp"
#include "../node/Mutex.hpp"
@ -1844,6 +1844,9 @@ public:
OSUtils::ztsnprintf(dirname,sizeof(dirname),"%s" ZT_PATH_SEPARATOR_S "peers.d",_homePath.c_str());
OSUtils::ztsnprintf(p,sizeof(p),"%s" ZT_PATH_SEPARATOR_S "%.10llx.peer",dirname,(unsigned long long)id[0]);
break;
case ZT_STATE_OBJECT_ROOT_LIST:
OSUtils::ztsnprintf(p,sizeof(p),"%s" ZT_PATH_SEPARATOR_S "roots",_homePath.c_str());
break;
default:
return;
}