mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
prevent freswitch from messing global cert validation, more work is need on rest requests ( also for other things)
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user