diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_stats.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/coremods/core_stats.cpp b/src/coremods/core_stats.cpp index 9dddcb3a5..d6703872e 100644 --- a/src/coremods/core_stats.cpp +++ b/src/coremods/core_stats.cpp @@ -117,10 +117,21 @@ void CommandStats::DoStats(Stats::Context& stats) for (std::vector<ListenSocket*>::const_iterator i = ServerInstance->ports.begin(); i != ServerInstance->ports.end(); ++i) { ListenSocket* ls = *i; + std::stringstream portentry; + const std::string type = ls->bind_tag->getString("type", "clients", 1); - const std::string hook = ls->bind_tag->getString("ssl", "plaintext", 1); + portentry << ls->bind_sa.str() << " (type: " << type; + + const std::string hook = ls->bind_tag->getString("hook"); + if (!hook.empty()) + portentry << ", hook: " << hook; + + const std::string sslprofile = ls->bind_tag->getString("ssl"); + if (!sslprofile.empty()) + portentry << ", ssl profile: " << sslprofile; - stats.AddRow(249, ls->bind_sa.str() + " (" + type + ", " + hook + ")"); + portentry << ')'; + stats.AddRow(249, portentry.str()); } } break; |