]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Allow for <bind> tags with no or empty type, as well as 'clients' ones
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 22 Jan 2006 22:44:53 +0000 (22:44 +0000)
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 22 Jan 2006 22:44:53 +0000 (22:44 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2845 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/extra/m_ssl_gnutls.cpp

index d3992429bcf6b0fa55089e2999a1d48796d45255..2bdb0a24ef07a3a5c7fef43f1ee0537791da7398 100644 (file)
@@ -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);