core: fix ignoresslerrors cli option (#9657)

This commit is contained in:
Diego Heras
2020-09-26 19:50:58 +02:00
committed by GitHub
parent bbe99c4123
commit 7279edf354
5 changed files with 24 additions and 52 deletions

View File

@@ -13,35 +13,24 @@ namespace Jackett.Server
{
if (runtimeSettings.ClientOverride != "httpclient" && runtimeSettings.ClientOverride != "httpclient2")
{
logger.Error($"Client override ({runtimeSettings.ClientOverride}) has been deprecated, please remove it from your start arguments");
logger.Error($"Client override ({runtimeSettings.ClientOverride}) has been deprecated, please remove it from your start arguments.");
Environment.Exit(1);
}
if (runtimeSettings.LogRequests)
{
logger.Info("Logging enabled.");
}
if (runtimeSettings.TracingEnabled)
{
logger.Info("Tracing enabled.");
}
// https://github.com/Jackett/Jackett/issues/6229
//if (runtimeSettings.IgnoreSslErrors == true)
//{
// logger.Error($"The IgnoreSslErrors option has been deprecated, please remove it from your start arguments");
//}
if (runtimeSettings.IgnoreSslErrors == true)
logger.Info("Ignore SSL errors enabled.");
if (!string.IsNullOrWhiteSpace(runtimeSettings.CustomDataFolder))
{
logger.Info("Jackett Data will be stored in: " + runtimeSettings.CustomDataFolder);
}
if (runtimeSettings.ProxyConnection != null)
{
logger.Info("Proxy enabled. " + runtimeSettings.ProxyConnection);
}
logger.Info("Proxy enabled: " + runtimeSettings.ProxyConnection);
}
public static void ProcessWindowsSpecificArgs(ConsoleOptions consoleOptions, IProcessService processService, ServerConfig serverConfig, Logger logger)