Added "version" element to JSON outputs of binaries, added version check in controller (ignores mismatched binaries now)

This commit is contained in:
Thulinma 2019-05-22 00:09:56 +02:00
parent 917ce2d452
commit d0868d0f42
3 changed files with 15 additions and 5 deletions

View file

@ -98,6 +98,7 @@ namespace Mist {
Util::Config::streamName = streamName;
if (config->getBool("json")) {
capa["version"] = PACKAGE_VERSION;
std::cout << capa.toString() << std::endl;
return 0;
}