summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ManagementServer.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ManagementServer.cpp b/src/ManagementServer.cpp
index cd70b77..092b257 100644
--- a/src/ManagementServer.cpp
+++ b/src/ManagementServer.cpp
@@ -298,14 +298,24 @@ void ManagementServer::handle_message(zmq::message_t& zmq_message)
if (data == "info") {
answer <<
- "{ \"service\": \"" <<
+ "{ " <<
+ "\"service\": \"" <<
PACKAGE_NAME << " " <<
#if defined(GITVERSION)
GITVERSION <<
#else
PACKAGE_VERSION <<
#endif
- " MGMT Server\" }\n";
+ " MGMT Server\", "
+ <<
+ "\"version\": \"" <<
+#if defined(GITVERSION)
+ GITVERSION <<
+#else
+ PACKAGE_VERSION <<
+#endif
+ "\" "
+ << "}\n";
}
else if (data == "config") {
answer << getStatConfigJSON();