mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Fix this so it works properly, and removes the descriptions on unload (when the sockets revert back to plaintext)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6197 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
ba339f8b1c
commit
8fe441db7c
@ -141,7 +141,7 @@ class ModuleSSLGnuTLS : public Module
|
||||
{
|
||||
listenports.push_back(portno);
|
||||
for (unsigned int i = 0; i < ServerInstance->stats->BoundPortCount; i++)
|
||||
if (ServerInstance->Config->ports[i])
|
||||
if (ServerInstance->Config->ports[i] == portno)
|
||||
ServerInstance->Config->openSockfd[i]->SetDescription("ssl");
|
||||
ServerInstance->Log(DEFAULT, "m_ssl_gnutls.so: Enabling SSL for port %d", portno);
|
||||
}
|
||||
@ -259,7 +259,12 @@ class ModuleSSLGnuTLS : public Module
|
||||
ServerInstance->Log(DEBUG, "m_ssl_gnutls.so: Killed %d users for unload of GnuTLS SSL module", numusers);
|
||||
|
||||
for(unsigned int i = 0; i < listenports.size(); i++)
|
||||
{
|
||||
ServerInstance->Config->DelIOHook(listenports[i]);
|
||||
for (unsigned int j = 0; j < ServerInstance->stats->BoundPortCount; j++)
|
||||
if (ServerInstance->Config->ports[j] == listenports[i])
|
||||
ServerInstance->Config->openSockfd[j]->SetDescription("plaintext");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ class ModuleSSLOpenSSL : public Module
|
||||
{
|
||||
listenports.push_back(portno);
|
||||
for (unsigned int i = 0; i < ServerInstance->stats->BoundPortCount; i++)
|
||||
if (ServerInstance->Config->ports[i])
|
||||
if (ServerInstance->Config->ports[i] == portno)
|
||||
ServerInstance->Config->openSockfd[i]->SetDescription("ssl");
|
||||
ServerInstance->Log(DEFAULT, "m_ssl_openssl.so: Enabling SSL for port %d", portno);
|
||||
}
|
||||
@ -293,7 +293,12 @@ class ModuleSSLOpenSSL : public Module
|
||||
ServerInstance->Log(DEBUG, "m_ssl_openssl.so: Killed %d users for unload of OpenSSL SSL module", numusers);
|
||||
|
||||
for(unsigned int i = 0; i < listenports.size(); i++)
|
||||
{
|
||||
ServerInstance->Config->DelIOHook(listenports[i]);
|
||||
for (unsigned int j = 0; j < ServerInstance->stats->BoundPortCount; j++)
|
||||
if (ServerInstance->Config->ports[j] == listenports[i])
|
||||
ServerInstance->Config->openSockfd[j]->SetDescription("plaintext");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user