diff --git a/src/Jackett.Common/Models/Config/ConsoleOptions.cs b/src/Jackett.Common/Models/Config/ConsoleOptions.cs index 36e1ae108..3437bf3c1 100644 --- a/src/Jackett.Common/Models/Config/ConsoleOptions.cs +++ b/src/Jackett.Common/Models/Config/ConsoleOptions.cs @@ -72,45 +72,43 @@ namespace Jackett.Common.Models.Config public RuntimeSettings ToRunTimeSettings() { var options = this; - var runtimeSettings = new RuntimeSettings(); - // Logging - if (options.Logging) - runtimeSettings.LogRequests = true; + var runtimeSettings = new RuntimeSettings(); + // Logging + if (options.Logging) + runtimeSettings.LogRequests = true; - // Tracing - if (options.Tracing) - runtimeSettings.TracingEnabled = true; - - if (options.ListenPublic && options.ListenPrivate) - { - Console.WriteLine("You can only use listen private OR listen publicly."); - Engine.Exit(1); - } - - // SSL Fix - runtimeSettings.DoSSLFix = options.SSLFix; - - // Use curl - if (options.Client != null) - runtimeSettings.ClientOverride = options.Client.ToLowerInvariant(); - - // Use Proxy - if (options.ProxyConnection != null) - { - runtimeSettings.ProxyConnection = options.ProxyConnection.ToLowerInvariant(); - } - // Ignore SSL errors on Curl - runtimeSettings.IgnoreSslErrors = options.IgnoreSslErrors; - runtimeSettings.NoRestart = options.NoRestart; - - if (!string.IsNullOrWhiteSpace(options.DataFolder)) - runtimeSettings.CustomDataFolder = options.DataFolder; - - runtimeSettings.PIDFile = options.PIDFile; - - return runtimeSettings; + // Tracing + if (options.Tracing) + runtimeSettings.TracingEnabled = true; + if (options.ListenPublic && options.ListenPrivate) + { + Console.WriteLine("You can only use listen private OR listen publicly."); + Engine.Exit(1); } - } - } \ No newline at end of file + // SSL Fix + runtimeSettings.DoSSLFix = options.SSLFix; + + // Use curl + if (options.Client != null) + runtimeSettings.ClientOverride = options.Client.ToLowerInvariant(); + + // Use Proxy + if (options.ProxyConnection != null) + { + runtimeSettings.ProxyConnection = options.ProxyConnection.ToLowerInvariant(); + } + // Ignore SSL errors on Curl + runtimeSettings.IgnoreSslErrors = options.IgnoreSslErrors; + runtimeSettings.NoRestart = options.NoRestart; + + if (!string.IsNullOrWhiteSpace(options.DataFolder)) + runtimeSettings.CustomDataFolder = options.DataFolder; + + runtimeSettings.PIDFile = options.PIDFile; + + return runtimeSettings; + } + } +} \ No newline at end of file