mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Fix the STATS p
output being ambiguous.
- Add the middle I/O hook to the stats output. - Make it obvious what the various fields actually are.
This commit is contained in:
parent
fd6cb9caba
commit
a670bd81f6
@ -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;
|
||||
const std::string type = ls->bind_tag->getString("type", "clients", 1);
|
||||
const std::string hook = ls->bind_tag->getString("ssl", "plaintext", 1);
|
||||
std::stringstream portentry;
|
||||
|
||||
stats.AddRow(249, ls->bind_sa.str() + " (" + type + ", " + hook + ")");
|
||||
const std::string type = ls->bind_tag->getString("type", "clients", 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;
|
||||
|
||||
portentry << ')';
|
||||
stats.AddRow(249, portentry.str());
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user