Add some additional detail to the peer record in CAPI and JSON control plane.
This commit is contained in:
parent
91ca238163
commit
d2503172d8
4 changed files with 32 additions and 10 deletions
|
@ -343,6 +343,8 @@ ZT1_PeerList *Node::peers() const
|
|||
for(std::map< Address,SharedPtr<Peer> >::iterator pi(peers.begin());pi!=peers.end();++pi) {
|
||||
ZT1_Peer *p = &(pl->peers[pl->peerCount++]);
|
||||
p->address = pi->second->address().toInt();
|
||||
p->lastUnicastFrame = pi->second->lastUnicastFrame();
|
||||
p->lastMulticastFrame = pi->second->lastMulticastFrame();
|
||||
if (pi->second->remoteVersionKnown()) {
|
||||
p->versionMajor = pi->second->remoteVersionMajor();
|
||||
p->versionMinor = pi->second->remoteVersionMinor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue