From 385f1410d24c37ef9cd8a3494a5eaa383ffd0fba Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 13 Oct 2015 12:33:15 -0700 Subject: [PATCH] Expose world info in JSON. --- service/ControlPlane.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp index dd755a309..7affb08c6 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,