From: Sadie Powell Date: Fri, 3 Jan 2020 12:51:23 +0000 (+0000) Subject: Bind ports before loading modules. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=45eff275cbc942a9b16f55367e6d5bd2bbfad2e0;p=user%2Fhenk%2Fcode%2Finspircd.git Bind ports before loading modules. This fixes a defect introduced in ce7979bd7d where the ircv3_sts module was unable to find the SSL listener. --- diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 2035960bd..34a62d918 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -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