mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Merge branch 'master' of github.com:jedmccaleb/NewCoin
This commit is contained in:
10
src/Peer.cpp
10
src/Peer.cpp
@@ -540,6 +540,16 @@ void Peer::punishPeer(PeerPunish)
|
||||
{
|
||||
}
|
||||
|
||||
Json::Value Peer::getJson() {
|
||||
Json::Value ret(Json::objectValue);
|
||||
|
||||
ret["ip"] = mSocket.remote_endpoint().address().to_string();
|
||||
ret["port"] = mSocket.remote_endpoint().port();
|
||||
ret["hanko"] = mHanko.ToString();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user