mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-16 14:18:24 +00:00
Return test ID when we post a test.
This commit is contained in:
@ -608,6 +608,11 @@ unsigned int SqliteNetworkController::handleControlPlaneHttpPOST(
|
|||||||
|
|
||||||
_node->circuitTestBegin(test,&(SqliteNetworkController::_circuitTestCallback));
|
_node->circuitTestBegin(test,&(SqliteNetworkController::_circuitTestCallback));
|
||||||
|
|
||||||
|
char json[1024];
|
||||||
|
Utils::snprintf(json,sizeof(json),"{\"testId\":\"%.16llx\"}",test->testId);
|
||||||
|
responseBody = json;
|
||||||
|
responseContentType = "application/json";
|
||||||
|
|
||||||
return 200;
|
return 200;
|
||||||
} // else 404
|
} // else 404
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user