diff options
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_stats.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/coremods/core_stats.cpp b/src/coremods/core_stats.cpp index b91653908..9d1fdf3fe 100644 --- a/src/coremods/core_stats.cpp +++ b/src/coremods/core_stats.cpp @@ -99,18 +99,10 @@ 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::string ip = ls->bind_addr; - if (ip.empty()) - ip.assign("*"); - else if (ip.find_first_of(':') != std::string::npos) - { - ip.insert(ip.begin(), '['); - ip.insert(ip.end(), ']'); - } std::string type = ls->bind_tag->getString("type", "clients"); std::string hook = ls->bind_tag->getString("ssl", "plaintext"); - stats.AddRow(249, ip + ":"+ConvToStr(ls->bind_port) + " (" + type + ", " + hook + ")"); + stats.AddRow(249, ls->bind_sa.str() + " (" + type + ", " + hook + ")"); } } break; |