mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
fix mono 5 detection
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Jackett
|
|||||||
{
|
{
|
||||||
var monoVersion = displayName.Invoke(null, null).ToString();
|
var monoVersion = displayName.Invoke(null, null).ToString();
|
||||||
var monoVersionO = new Version(monoVersion.Split(' ')[0]);
|
var monoVersionO = new Version(monoVersion.Split(' ')[0]);
|
||||||
if (monoVersionO.Major >= 4 && monoVersionO.Minor >= 8)
|
if ((monoVersionO.Major >= 4 && monoVersionO.Minor >= 8) || monoVersionO.Major >= 5)
|
||||||
{
|
{
|
||||||
// check if btls is supported
|
// check if btls is supported
|
||||||
var monoSecurity = Assembly.Load("Mono.Security");
|
var monoSecurity = Assembly.Load("Mono.Security");
|
||||||
|
@@ -245,7 +245,7 @@ namespace Jackett.Services
|
|||||||
var mono_cert_file = Path.Combine(runtimedir, "cert-sync.exe");
|
var mono_cert_file = Path.Combine(runtimedir, "cert-sync.exe");
|
||||||
if (!File.Exists(mono_cert_file))
|
if (!File.Exists(mono_cert_file))
|
||||||
{
|
{
|
||||||
if (monoVersionO.Major >= 4 && monoVersionO.Minor >= 8)
|
if ((monoVersionO.Major >= 4 && monoVersionO.Minor >= 8) || monoVersionO.Major >= 5)
|
||||||
{
|
{
|
||||||
var notice = "The ca-certificates-mono package is not installed, HTTPS trackers won't work. Please install it.";
|
var notice = "The ca-certificates-mono package is not installed, HTTPS trackers won't work. Please install it.";
|
||||||
_notices.Add(notice);
|
_notices.Add(notice);
|
||||||
|
Reference in New Issue
Block a user