diff --git a/I2PControl.cpp b/I2PControl.cpp index fae0283e..fdf81c30 100644 --- a/I2PControl.cpp +++ b/I2PControl.cpp @@ -230,12 +230,12 @@ namespace client void I2PControlService::NetDbActivePeersHandler (std::map& results) { - results[I2P_CONTROL_ROUTER_INFO_NETDB_ACTIVEPEERS] = boost::lexical_cast(i2p::data::netdb.GetNumRouters ()); + results[I2P_CONTROL_ROUTER_INFO_NETDB_ACTIVEPEERS] = boost::lexical_cast(i2p::transport::transports.GetPeers ().size ()); } void I2PControlService::TunnelsParticipatingHandler (std::map& results) { - results[I2P_CONTROL_ROUTER_INFO_TUNNELS_PARTICIPATING] = boost::lexical_cast(i2p::transport::transports.GetPeers ().size ()); + results[I2P_CONTROL_ROUTER_INFO_TUNNELS_PARTICIPATING] = boost::lexical_cast(i2p::tunnel::tunnels.GetTransitTunnels ().size ());; } // RouterManager