summaryrefslogtreecommitdiff
path: root/service/ControlPlane.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-13 12:33:15 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-13 12:33:15 -0700
commit385f1410d24c37ef9cd8a3494a5eaa383ffd0fba (patch)
treebf32f96128b27cdc6bcd4f81c12ac69937c5a4cb /service/ControlPlane.cpp
parent70d8e3ad94076c51b05b4165cbd68a91806dbde7 (diff)
downloadinfinitytier-385f1410d24c37ef9cd8a3494a5eaa383ffd0fba.tar.gz
infinitytier-385f1410d24c37ef9cd8a3494a5eaa383ffd0fba.zip
Expose world info in JSON.
Diffstat (limited to 'service/ControlPlane.cpp')
-rw-r--r--service/ControlPlane.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp
index dd755a30..7affb08c 100644
--- a/service/ControlPlane.cpp
+++ b/service/ControlPlane.cpp
@@ -360,6 +360,8 @@ unsigned int ControlPlane::handleRequest(
"{\n"
"\t\"address\": \"%.10llx\",\n"
"\t\"publicIdentity\": \"%s\",\n"
+ "\t\"worldId\": %llu,\n"
+ "\t\"worldTimestamp\": %llu,\n"
"\t\"online\": %s,\n"
"\t\"tcpFallbackActive\": %s,\n"
"\t\"versionMajor\": %d,\n"
@@ -370,6 +372,8 @@ unsigned int ControlPlane::handleRequest(
"}\n",
status.address,
status.publicIdentity,
+ status.worldId,
+ status.worldTimestamp,
(status.online) ? "true" : "false",
(_svc->tcpFallbackActive()) ? "true" : "false",
ZEROTIER_ONE_VERSION_MAJOR,