From b6a5e2bd143cdd2fc610f79c87729d2e211da7ff Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 9 Oct 2009 19:00:09 +0000 Subject: Add server ports to ServerInstance->ports, enable SSL on them using OnHookIO git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11810 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 9ec6c9982..74427d42a 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -144,16 +144,16 @@ int InspIRCd::BindPorts(FailedPortList &failed_ports) } if (!skip) { - ClientListenSocket *ll = new ClientListenSocket(portno, Addr); + ClientListenSocket *ll = new ClientListenSocket(portno, Addr, "clients", *Desc ? Desc : "plaintext"); if (ll->GetFd() > -1) { bound++; - ll->SetDescription(*Desc ? Desc : "plaintext"); ports.push_back(ll); } else { failed_ports.push_back(std::make_pair(bind_readable, strerror(errno))); + delete ll; } } } -- cgit v1.3.1-10-gc9f91