mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-20 21:43:08 +00:00
Echo back ping payload.
This commit is contained in:
parent
8e19188f49
commit
d7c99728bc
@ -1045,7 +1045,7 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST(
|
||||
_queue.post(qe);
|
||||
|
||||
char tmp[64];
|
||||
Utils::snprintf(tmp,sizeof(tmp),"{\"clock\":%llu}",(unsigned long long)now);
|
||||
Utils::snprintf(tmp,sizeof(tmp),"{\"clock\":%llu,\"ping\":%s}",(unsigned long long)now,OSUtils::jsonDump(b).c_str());
|
||||
responseBody = tmp;
|
||||
responseContentType = "application/json";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user