From 45eff275cbc942a9b16f55367e6d5bd2bbfad2e0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 3 Jan 2020 12:51:23 +0000 Subject: Bind ports before loading modules. This fixes a defect introduced in ce7979bd7d where the ircv3_sts module was unable to find the SSL listener. --- src/inspircd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3