summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_ssl_gnutls.cpp
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 22:44:53 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 22:44:53 +0000
commit6a558db9a8a53bf1384365e475a7d6bab1078019 (patch)
tree20ed7bac357eaa63602d1f1ee0373a39b688d7a4 /src/modules/extra/m_ssl_gnutls.cpp
parent658c9e981d7ca42a17fe8b4fd516a3c8f9b45fec (diff)
Allow for <bind> tags with no or empty type, as well as 'clients' ones
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2845 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index d3992429b..2bdb0a24e 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -99,7 +99,7 @@ class ModuleSSL : public Module
for(int i = 0; i < Conf->Enumerate("bind"); i++)
{
// For each <bind> tag
- if((Conf->ReadValue("bind", "type", i) == "clients") && (Conf->ReadValue("bind", "ssl", i) == "gnutls"))
+ if(((Conf->ReadValue("bind", "type", i) == "") || (Conf->ReadValue("bind", "type", i) == "clients")) && (Conf->ReadValue("bind", "ssl", i) == "gnutls"))
{
// Get the port we're meant to be listening on with SSL
unsigned int port = Conf->ReadInteger("bind", "port", i, true);