mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Build fix
This commit is contained in:
parent
99df3fe433
commit
5f11daadf2
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,7 @@ LFDB::LFDB(EmbeddedNetworkController *const nc,const Identity &myId,const char *
|
||||||
<< "\"MaskingKey\":\"" << controllerAddress << "\","
|
<< "\"MaskingKey\":\"" << controllerAddress << "\","
|
||||||
<< "\"Owners\":[\"" << _lfOwnerPublic << "\"]"
|
<< "\"Owners\":[\"" << _lfOwnerPublic << "\"]"
|
||||||
<< '}';
|
<< '}';
|
||||||
auto resp = htcli.Post("/query",query.str(),"application/json");
|
resp = htcli.Post("/query",query.str(),"application/json");
|
||||||
if (resp->status == 200) {
|
if (resp->status == 200) {
|
||||||
nlohmann::json results(OSUtils::jsonParse(resp->body));
|
nlohmann::json results(OSUtils::jsonParse(resp->body));
|
||||||
if ((results.is_array())&&(results.size() > 0)) {
|
if ((results.is_array())&&(results.size() > 0)) {
|
||||||
|
@ -159,6 +159,7 @@ bool LFDB::waitForReady()
|
||||||
while (!_ready) {
|
while (!_ready) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LFDB::isReady()
|
bool LFDB::isReady()
|
||||||
|
|
Loading…
Add table
Reference in a new issue