diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-21 23:46:33 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-21 23:46:33 +0000 |
commit | d221de88276b9e33a108281a9cd0a58875032fc6 (patch) | |
tree | 3032609bd5ef7f4a6a4bad5c0b2a4100432ea2df /src/stats.cpp | |
parent | dcbb0ae938711cd49df73dc2ff6cd6289aeefb44 (diff) |
Kill ListenSocketBase, use OnAcceptConnection for all new connections
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11950 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/stats.cpp')
-rw-r--r-- | src/stats.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stats.cpp b/src/stats.cpp index a469600af..decdfe36e 100644 --- a/src/stats.cpp +++ b/src/stats.cpp @@ -46,12 +46,14 @@ void InspIRCd::DoStats(char statschar, User* user, string_list &results) { for (size_t i = 0; i < this->ports.size(); i++) { - std::string ip = this->ports[i]->GetIP(); + std::string ip = this->ports[i]->bind_addr; if (ip.empty()) ip.assign("*"); + std::string type = ports[i]->bind_tag->getString("type", "clients"); + std::string hook = ports[i]->bind_tag->getString("ssl", "plaintext"); results.push_back(sn+" 249 "+user->nick+" :"+ ip + ":"+ConvToStr(ports[i]->bind_port)+ - " (" + ports[i]->type + ", " + ports[i]->hook + ")"); + " (" + type + ", " + hook + ")"); } } break; |