diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp
index cc2407c8..bba527d7 100644
--- a/daemon/HTTPServer.cpp
+++ b/daemon/HTTPServer.cpp
@@ -641,7 +641,7 @@ namespace http {
else if (i2p::transport::transports.GetTotalSentBytes () > 1024*1024)
s << std::fixed << std::setprecision(1);
ShowTraffic (s, i2p::transport::transports.GetTotalSentBytes ());
- s << "\r\n";
+ s << "\r\n";
if (i2p::context.AcceptsTunnels () && i2p::tunnel::tunnels.CountTransitTunnels()) {
s << "
" << tr("Transit") << " | ";
s << std::fixed << std::setprecision(0);
@@ -670,9 +670,13 @@ namespace http {
clientTunnelCount += i2p::tunnel::tunnels.CountInboundTunnels();
std::string webroot; i2p::config::GetOption("http.webroot", webroot);
- s << "" << tr("Local Tunnels") << " | " << std::to_string(clientTunnelCount) << " | \r\n";
+ if (!(i2p::context.AcceptsTunnels () || i2p::tunnel::tunnels.CountTransitTunnels()))
+ s << "";
+ else
+ s << " ";
+ s << "" << tr("Local Tunnels") << " | " << std::to_string(clientTunnelCount) << " | \r\n";
if (i2p::context.AcceptsTunnels () || i2p::tunnel::tunnels.CountTransitTunnels()) {
- s << "" << tr("Transit Tunnels") << " | "
+ s << " | " << tr("Transit Tunnels") << " | "
<< std::to_string(i2p::tunnel::tunnels.CountTransitTunnels()) << " | \r\n";
}
@@ -684,8 +688,9 @@ namespace http {
bool i2cp = i2p::client::context.GetI2CPServer () ? true : false;
bool i2pcontrol; i2p::config::GetOption("i2pcontrol.enabled", i2pcontrol);
if (httpproxy || socksproxy || bob || sam || i2cp || i2pcontrol) {
- s << "" << tr("Router Services") << " | ";
- s << "";
+ s << " | "
+ << "" << tr("Router Services") << " | \r\n";
+ s << "";
if (httpproxy)
s << " HTTP " << tr("Proxy") << " ";
if (socksproxy)
@@ -697,8 +702,8 @@ namespace http {
if (i2cp)
s << " I2CP ";
if (i2pcontrol)
- s << " I2PControl ";
- s << " | | ";
+ s << " I2PControl";
+ s << "
\r\n";
}
/*
s << "" << "HTTP " << tr("Proxy") << " | |