mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 21:45:52 +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"] = mIpPort.second;
|
||||
|
||||
if (mInbound)
|
||||
ret["inbound"] = true;
|
||||
if (mCluster)
|
||||
ret["cluster"] = true;
|
||||
if (mHello.has_fullversion())
|
||||
ret["version"] = mHello.fullversion();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user