Add new fields to peer Json output.

This commit is contained in:
JoelKatz
2013-01-14 23:48:51 -08:00
parent b95b704ecb
commit a79b6e0a15

View File

@@ -1779,6 +1779,10 @@ Json::Value Peer::getJson()
//ret["port"] = mIpPortConnect.second;
ret["port"] = mIpPort.second;
if (mInbound)
ret["inbound"] = true;
if (mCluster)
ret["cluster"] = true;
if (mHello.has_fullversion())
ret["version"] = mHello.fullversion();