diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-13 12:31:38 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-13 12:31:38 -0700 |
commit | 70d8e3ad94076c51b05b4165cbd68a91806dbde7 (patch) | |
tree | cb26e58c902150621464c78b9130fd892f8ecdee /node | |
parent | 71348f3ebbc84fe31d15bb0aa0f6b2b6e158cf28 (diff) | |
download | infinitytier-70d8e3ad94076c51b05b4165cbd68a91806dbde7.tar.gz infinitytier-70d8e3ad94076c51b05b4165cbd68a91806dbde7.zip |
Expose world ID and world timestamp in ZT_NodeStatus
Diffstat (limited to 'node')
-rw-r--r-- | node/Node.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Node.cpp b/node/Node.cpp index 5468f102..be37b7c7 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -345,6 +345,8 @@ uint64_t Node::address() const void Node::status(ZT_NodeStatus *status) const { status->address = RR->identity.address().toInt(); + status->worldId = RR->topology->worldId(); + status->worldTimestamp = RR->topology->worldTimestamp(); status->publicIdentity = RR->publicIdentityStr.c_str(); status->secretIdentity = RR->secretIdentityStr.c_str(); status->online = _online ? 1 : 0; |