mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
show if router is connected in i2p.router.status
This commit is contained in:
parent
a840ed06b7
commit
faa368cc07
@ -391,7 +391,7 @@ namespace client
|
|||||||
|
|
||||||
void I2PControlService::StatusHandler (std::ostringstream& results)
|
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)
|
void I2PControlService::NetDbKnownPeersHandler (std::ostringstream& results)
|
||||||
|
Loading…
Reference in New Issue
Block a user