aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/ServerMain.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Server/ServerMain.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs
index 09f6920..c180ca6 100644
--- a/OpenSim/Server/ServerMain.cs
+++ b/OpenSim/Server/ServerMain.cs
@@ -85,8 +85,6 @@ namespace OpenSim.Server
85 ServicePointManager.UseNagleAlgorithm = false; 85 ServicePointManager.UseNagleAlgorithm = false;
86 ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate; 86 ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate;
87 87
88 try { ServicePointManager.DnsRefreshTimeout = 300000; } catch { }
89
90 m_Server = new HttpServerBase("R.O.B.U.S.T.", args); 88 m_Server = new HttpServerBase("R.O.B.U.S.T.", args);
91 89
92 string registryLocation; 90 string registryLocation;
@@ -98,6 +96,9 @@ namespace OpenSim.Server
98 throw new Exception("Configuration error"); 96 throw new Exception("Configuration error");
99 } 97 }
100 98
99 int dnsTimeout = serverConfig.GetInt("DnsTimeout", 30000);
100 try { ServicePointManager.DnsRefreshTimeout = dnsTimeout; } catch { }
101
101 m_NoVerifyCertChain = serverConfig.GetBoolean("NoVerifyCertChain", m_NoVerifyCertChain); 102 m_NoVerifyCertChain = serverConfig.GetBoolean("NoVerifyCertChain", m_NoVerifyCertChain);
102 m_NoVerifyCertHostname = serverConfig.GetBoolean("NoVerifyCertHostname", m_NoVerifyCertHostname); 103 m_NoVerifyCertHostname = serverConfig.GetBoolean("NoVerifyCertHostname", m_NoVerifyCertHostname);
103 104