prevent freswitch from messing global cert validation, more work is need on rest requests ( also for other things)

0.9.1.0-post-fixes
UbitUmarov 2019-02-04 21:44:40 +00:00
parent 55f27135dd
commit b8121ad8a2
1 changed files with 1 additions and 10 deletions

View File

@ -183,16 +183,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
m_log.ErrorFormat("[FreeSwitchVoice]: plugin initialization failed: {0} {1}", e.Message, e.StackTrace);
return;
}
// THIS IS WRONG need to remove later
try
{
ServicePointManager.ServerCertificateValidationCallback += CustomCertificateValidation;
}
catch (NotImplementedException)
{
}
}
public void PostInitialise()
@ -529,6 +519,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
forwardreq.Method = method;
forwardreq.ContentType = contenttype;
forwardreq.KeepAlive = false;
forwardreq.ServerCertificateValidationCallback = CustomCertificateValidation;
if (method == "POST")
{