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

This commit is contained in:
UbitUmarov
2019-02-04 21:44:40 +00:00
parent 55f27135dd
commit b8121ad8a2

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")
{