From 07d3d51c3b82f83981965e483886042632cb69d4 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 12 Apr 2024 20:40:16 +0100 Subject: [PATCH] Robust: only create shared webclients after reading config --- OpenSim/Server/ServerMain.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs index c0984281a9..1e5874ecec 100644 --- a/OpenSim/Server/ServerMain.cs +++ b/OpenSim/Server/ServerMain.cs @@ -101,9 +101,7 @@ namespace OpenSim.Server ServicePointManager.Expect100Continue = false; ServicePointManager.UseNagleAlgorithm = false; ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate; - - WebUtil.SetupHTTPClients(m_NoVerifyCertChain, m_NoVerifyCertHostname, null, 32); - + m_Server = new HttpServerBase("R.O.B.U.S.T.", args); string registryLocation; @@ -121,6 +119,7 @@ namespace OpenSim.Server m_NoVerifyCertChain = serverConfig.GetBoolean("NoVerifyCertChain", m_NoVerifyCertChain); m_NoVerifyCertHostname = serverConfig.GetBoolean("NoVerifyCertHostname", m_NoVerifyCertHostname); + WebUtil.SetupHTTPClients(m_NoVerifyCertChain, m_NoVerifyCertHostname, null, 32); string connList = serverConfig.GetString("ServiceConnectors", string.Empty);