Added release string to API version response

This commit is contained in:
Thulinma 2019-01-16 15:49:08 +01:00
parent 483b0007d1
commit 14889fa35b

View file

@ -550,7 +550,7 @@ void Controller::handleAPICommands(JSON::Value & Request, JSON::Value & Response
if (!Request.isMember("minimal") || Request.isMember("config")){ if (!Request.isMember("minimal") || Request.isMember("config")){
Response["config"] = Controller::Storage["config"]; Response["config"] = Controller::Storage["config"];
Response["config"]["iid"] = instanceId; Response["config"]["iid"] = instanceId;
Response["config"]["version"] = PACKAGE_VERSION; Response["config"]["version"] = PACKAGE_VERSION " " RELEASE;
//add required data to the current unix time to the config, for syncing reasons //add required data to the current unix time to the config, for syncing reasons
Response["config"]["time"] = Util::epoch(); Response["config"]["time"] = Util::epoch();
if ( !Response["config"].isMember("serverid")){ if ( !Response["config"].isMember("serverid")){