mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Add new fields to peer Json output.
This commit is contained in:
@@ -1779,6 +1779,10 @@ Json::Value Peer::getJson()
|
|||||||
//ret["port"] = mIpPortConnect.second;
|
//ret["port"] = mIpPortConnect.second;
|
||||||
ret["port"] = mIpPort.second;
|
ret["port"] = mIpPort.second;
|
||||||
|
|
||||||
|
if (mInbound)
|
||||||
|
ret["inbound"] = true;
|
||||||
|
if (mCluster)
|
||||||
|
ret["cluster"] = true;
|
||||||
if (mHello.has_fullversion())
|
if (mHello.has_fullversion())
|
||||||
ret["version"] = mHello.fullversion();
|
ret["version"] = mHello.fullversion();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user