From faa368cc070d46be9d77fbdcb3f8fa47f9029f3b Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 26 Jan 2017 15:59:33 -0500 Subject: [PATCH] show if router is connected in i2p.router.status --- I2PControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/I2PControl.cpp b/I2PControl.cpp index 523f10e1..6ffe8936 100644 --- a/I2PControl.cpp +++ b/I2PControl.cpp @@ -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)