mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
ServerService: check mono version during startup
This commit is contained in:
@@ -165,6 +165,16 @@ namespace Jackett.Services
|
|||||||
monoVersion = displayName.Invoke(null, null).ToString();
|
monoVersion = displayName.Invoke(null, null).ToString();
|
||||||
logger.Info("mono version: " + monoVersion);
|
logger.Info("mono version: " + monoVersion);
|
||||||
|
|
||||||
|
if (monoVersion.StartsWith("3."))
|
||||||
|
{
|
||||||
|
logger.Error("Your mono version is to old (mono 3 is no longer supported). Please update to the latest version from http://www.mono-project.com/download/");
|
||||||
|
Environment.Exit(2);
|
||||||
|
}
|
||||||
|
else if (monoVersion.StartsWith("4.2."))
|
||||||
|
{
|
||||||
|
logger.Error("mono version 4.2.* is known to cause problems with Jackett. If you experience any problems please try updating to the latest mono version from http://www.mono-project.com/download/ first.");
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Check for mono-devel
|
// Check for mono-devel
|
||||||
|
Reference in New Issue
Block a user