mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Change default tls provider so users won't have to set TLS_PROVIDER explicitly.
This commit is contained in:
parent
36e4075629
commit
8e63f7d436
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Common.Instrumentation;
|
using NzbDrone.Common.Instrumentation;
|
||||||
|
|
||||||
namespace NzbDrone.Common.Security
|
namespace NzbDrone.Common.Security
|
||||||
|
@ -18,6 +19,11 @@ namespace NzbDrone.Common.Security
|
||||||
if (OsInfo.IsNotWindows)
|
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.
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue