fix mono 5 detection

This commit is contained in:
kaso17
2017-06-03 22:09:44 +02:00
parent d95e55137a
commit 2ceb41324d
2 changed files with 2 additions and 2 deletions

View File

@@ -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");

View File

@@ -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);