Disabled TLS health check warning.
This commit is contained in:
parent
24eb196336
commit
f8be5c9cb9
|
@ -28,42 +28,14 @@ namespace NzbDrone.Core.HealthCheck.Checks
|
||||||
|
|
||||||
if (monoVersion >= new Version("5.0.0") && Environment.GetEnvironmentVariable("MONO_TLS_PROVIDER") == "legacy")
|
if (monoVersion >= new Version("5.0.0") && Environment.GetEnvironmentVariable("MONO_TLS_PROVIDER") == "legacy")
|
||||||
{
|
{
|
||||||
_logger.Debug("Mono version 5.0.0 or higher and legacy TLS provider is selected, recommending user to switch to btls.");
|
// Mono 5.0 still has issues in combination with libmediainfo, so disabling this check for now.
|
||||||
return new HealthCheck(GetType(), HealthCheckResult.Warning, "Sonarr now supports Mono 5.x with btls enabled, consider removing MONO_TLS_PROVIDER=legacy option");
|
//_logger.Debug("Mono version 5.0.0 or higher and legacy TLS provider is selected, recommending user to switch to btls.");
|
||||||
|
//return new HealthCheck(GetType(), HealthCheckResult.Warning, "Sonarr now supports Mono 5.x with btls enabled, consider removing MONO_TLS_PROVIDER=legacy option");
|
||||||
}
|
}
|
||||||
|
|
||||||
return new HealthCheck(GetType());
|
return new HealthCheck(GetType());
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool CheckOnSchedule => false;
|
public override bool CheckOnSchedule => false;
|
||||||
|
|
||||||
private bool HasMonoBug18599()
|
|
||||||
{
|
|
||||||
_logger.Debug("mono version 3.4.0, checking for mono bug #18599.");
|
|
||||||
var numberFormatterType = Type.GetType("System.NumberFormatter");
|
|
||||||
|
|
||||||
if (numberFormatterType == null)
|
|
||||||
{
|
|
||||||
_logger.Debug("Couldn't find System.NumberFormatter. Aborting test.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
var fieldInfo = numberFormatterType.GetField("userFormatProvider",
|
|
||||||
BindingFlags.Static | BindingFlags.NonPublic);
|
|
||||||
|
|
||||||
if (fieldInfo == null)
|
|
||||||
{
|
|
||||||
_logger.Debug("userFormatProvider field not found, version likely preceeds the official v3.4.0.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fieldInfo.GetCustomAttributes(false).Any(v => v is ThreadStaticAttribute))
|
|
||||||
{
|
|
||||||
_logger.Debug("userFormatProvider field doesn't contain the ThreadStatic Attribute, version is affected by the critical bug #18599.");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue