]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Bind ports before loading modules.
authorSadie Powell <sadie@witchery.services>
Fri, 3 Jan 2020 12:51:23 +0000 (12:51 +0000)
committerSadie Powell <sadie@witchery.services>
Fri, 3 Jan 2020 12:51:23 +0000 (12:51 +0000)
This fixes a defect introduced in ce7979bd7d where the ircv3_sts
module was unable to find the SSL listener.

src/inspircd.cpp

index 2035960bd5bda1e6573df873590bb6762cbc5132..34a62d9189df79867d25c058f29667a63bd6d39f 100644 (file)
@@ -556,13 +556,13 @@ InspIRCd::InspIRCd(int argc, char** argv)
 
        std::cout << std::endl;
 
+       TryBindPorts();
+
        this->Modules->LoadAll();
 
        // Build ISupport as ModuleManager::LoadAll() does not do it
        this->ISupport.Build();
 
-       TryBindPorts();
-
        std::cout << "InspIRCd is now running as '" << Config->ServerName << "'[" << Config->GetSID() << "] with " << SocketEngine::GetMaxFds() << " max open sockets" << std::endl;
 
 #ifndef _WIN32