1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 12:24:19 +00:00

show if router is connected in i2p.router.status

This commit is contained in:
orignal 2017-01-26 15:59:33 -05:00
parent a840ed06b7
commit faa368cc07

View File

@ -391,7 +391,7 @@ namespace client
void I2PControlService::StatusHandler (std::ostringstream& results)
{
InsertParam (results, "i2p.router.status", "???"); // TODO:
InsertParam (results, "i2p.router.status", i2p::transport::transports.IsOnline () ? "1" : "0");
}
void I2PControlService::NetDbKnownPeersHandler (std::ostringstream& results)