diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp
index d491e8a0..f3f9bb74 100644
--- a/daemon/HTTPServer.cpp
+++ b/daemon/HTTPServer.cpp
@@ -652,16 +652,19 @@ namespace http {
s << "SOCKS Proxy" << " ⇐ ";
s << i2p::client::context.GetAddressBook ().ToAddress(ident);
s << "
\r\n"<< std::endl;
- }
- s << "
\r\nServer Tunnels:
\r\n
\r\n";
- for (auto& it: i2p::client::context.GetServerTunnels ())
- {
- auto& ident = it.second->GetLocalDestination ()->GetIdentHash();
- s << "";
- s << it.second->GetName () << " ⇒ ";
- s << i2p::client::context.GetAddressBook ().ToAddress(ident);
- s << ":" << it.second->GetLocalPort ();
- s << "
\r\n"<< std::endl;
+ }
+ auto& serverTunnels = i2p::client::context.GetServerTunnels ();
+ if (!serverTunnels.empty ()) {
+ s << "
\r\nServer Tunnels:
\r\n
\r\n";
+ for (auto& it: serverTunnels)
+ {
+ auto& ident = it.second->GetLocalDestination ()->GetIdentHash();
+ s << "";
+ s << it.second->GetName () << " ⇒ ";
+ s << i2p::client::context.GetAddressBook ().ToAddress(ident);
+ s << ":" << it.second->GetLocalPort ();
+ s << "
\r\n"<< std::endl;
+ }
}
auto& clientForwards = i2p::client::context.GetClientForwards ();
if (!clientForwards.empty ())