mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
Return test ID when we post a test.
This commit is contained in:
parent
78c1d9006a
commit
dc3d899e70
1 changed files with 5 additions and 0 deletions
|
@ -608,6 +608,11 @@ unsigned int SqliteNetworkController::handleControlPlaneHttpPOST(
|
|||
|
||||
_node->circuitTestBegin(test,&(SqliteNetworkController::_circuitTestCallback));
|
||||
|
||||
char json[1024];
|
||||
Utils::snprintf(json,sizeof(json),"{\"testId\":\"%.16llx\"}",test->testId);
|
||||
responseBody = json;
|
||||
responseContentType = "application/json";
|
||||
|
||||
return 200;
|
||||
} // else 404
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue