1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-03-05 15:15:59 +02:00

Revert "Change default tls provider so users won't have to set TLS_PROVIDER explicitly."

This reverts commit 8e63f7d43616ec508a12c9162e1f2197c3ac4d8a.

Only certain platforms need it and causes issues with OSX and cases where the user relies on btls.
This commit is contained in:
Taloth Saldono 2017-08-03 16:50:24 +02:00
parent ce6a5713d1
commit 89e804814b

View File

@ -2,7 +2,6 @@
using System.Net;
using NLog;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Instrumentation;
namespace NzbDrone.Common.Security
@ -19,11 +18,6 @@ namespace NzbDrone.Common.Security
if (OsInfo.IsNotWindows)
{
// This was never meant to be used on mono, and will cause issues with mono 5 and higher if btls is enabled.
// Instead, force TLS provider to legacy for now due to conflict between btls and mediainfo, unless the user explicitly specified it.
if (Environment.GetEnvironmentVariable("MONO_TLS_PROVIDER").IsNullOrWhiteSpace())
{
Environment.SetEnvironmentVariable("MONO_TLS_PROVIDER", "legacy");
}
return;
}