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

@@ -63,6 +63,7 @@ namespace Jackett.Common.Models.Config
{
var options = this;
var runtimeSettings = new RuntimeSettings();
// Logging
if (options.Logging)
runtimeSettings.LogRequests = true;
@@ -83,11 +84,11 @@ namespace Jackett.Common.Models.Config
// Use Proxy
if (options.ProxyConnection != null)
{
runtimeSettings.ProxyConnection = options.ProxyConnection.ToLowerInvariant();
}
// Ignore SSL errors on Curl
runtimeSettings.IgnoreSslErrors = options.IgnoreSslErrors;
runtimeSettings.NoRestart = options.NoRestart;
runtimeSettings.NoUpdates = options.NoUpdates;