mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-30 12:04:13 +00:00
Fix #252.
This commit is contained in:
parent
485e2237e0
commit
ca84c71c39
@ -309,16 +309,15 @@ void I2PControlSession::handleNetDbKnownPeers(Response& response)
|
|||||||
void I2PControlSession::handleNetDbActivePeers(Response& response)
|
void I2PControlSession::handleNetDbActivePeers(Response& response)
|
||||||
{
|
{
|
||||||
response.setParam(
|
response.setParam(
|
||||||
I2P_CONTROL_ROUTER_INFO_NETDB_KNOWNPEERS,
|
I2P_CONTROL_ROUTER_INFO_NETDB_ACTIVEPEERS,
|
||||||
i2p::data::netdb.GetNumRouters()
|
(int)i2p::transport::transports.GetPeers().size()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void I2PControlSession::handleNetStatus(Response& response)
|
void I2PControlSession::handleNetStatus(Response& response)
|
||||||
{
|
{
|
||||||
response.setParam(
|
response.setParam(
|
||||||
I2P_CONTROL_ROUTER_INFO_NETDB_ACTIVEPEERS,
|
I2P_CONTROL_ROUTER_INFO_NET_STATUS, (int)i2p::context.GetStatus()
|
||||||
(int)i2p::transport::transports.GetPeers().size()
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user