diff --git a/HTTPServer.cpp b/HTTPServer.cpp
index d3a57b50..44841a91 100644
--- a/HTTPServer.cpp
+++ b/HTTPServer.cpp
@@ -217,6 +217,7 @@ namespace http {
const char HTTP_PAGE_SAM_SESSION[] = "sam_session";
const char HTTP_PAGE_I2P_TUNNELS[] = "i2p_tunnels";
const char HTTP_PAGE_JUMPSERVICES[] = "jumpservices";
+ const char HTTP_PAGE_COMMANDS[] = "commands";
const char HTTP_COMMAND_START_ACCEPTING_TUNNELS[] = "start_accepting_tunnels";
const char HTTP_COMMAND_STOP_ACCEPTING_TUNNELS[] = "stop_accepting_tunnels";
const char HTTP_COMMAND_RUN_PEER_TEST[] = "run_peer_test";
@@ -452,10 +453,20 @@ namespace http {
else if (state == i2p::tunnel::eTunnelStateExpiring)
s << " " << "Expiring";
s << " " << (int)it->GetNumReceivedBytes () << "
\r\n";
- s << std::endl;
}
}
+ void ShowCommands (std::stringstream& s)
+ {
+ /* commands */
+ s << "Router Commands
\r\n";
+ s << " Run peer test
\r\n";
+ if (i2p::context.AcceptsTunnels ())
+ s << " Stop accepting tunnels
\r\n";
+ else
+ s << " Start accepting tunnels
\r\n";
+ }
+
void ShowTransitTunnels (std::stringstream& s)
{
s << "Transit tunnels:
\r\n
\r\n";
@@ -655,22 +666,16 @@ namespace http {
"