mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* It turns out that Mono doesn't currently support setting the Certificate validation handler, however, it throws a NotImplemented exception.
* Added Try/Catch/Message
This commit is contained in:
@@ -559,7 +559,8 @@ namespace OpenSim.Framework.Servers
|
||||
|
||||
foreach (string pattern in m_llsdHandlers.Keys)
|
||||
{
|
||||
if (searchquery.StartsWith(searchquery))
|
||||
|
||||
if (pattern.StartsWith(searchquery) && searchquery.Length >= pattern.Length)
|
||||
{
|
||||
if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length)
|
||||
{
|
||||
@@ -568,6 +569,10 @@ namespace OpenSim.Framework.Servers
|
||||
}
|
||||
}
|
||||
|
||||
// extra kicker to remove the default XMLRPC login case.. just in case..
|
||||
if (path == "/")
|
||||
return false;
|
||||
|
||||
if (String.IsNullOrEmpty(bestMatch))
|
||||
{
|
||||
|
||||
|
||||
@@ -114,7 +114,14 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
|
||||
if (m_scene.Count == 0)
|
||||
{
|
||||
scene.AddLLSDHandler("/agent/", ProcessAgentDomainMessage);
|
||||
ServicePointManager.ServerCertificateValidationCallback += customXertificateValidation;
|
||||
try
|
||||
{
|
||||
ServicePointManager.ServerCertificateValidationCallback += customXertificateValidation;
|
||||
}
|
||||
catch (NotImplementedException)
|
||||
{
|
||||
m_log.Error("[OGP]: Certificate validation handler change not supported. You may get ssl certificate validation errors teleporting from your region to some SSL regions.");
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_scene.Contains(scene))
|
||||
|
||||
Reference in New Issue
Block a user