mirror of https://github.com/Jackett/Jackett
fix whitespaces
This commit is contained in:
parent
2934bfb3e7
commit
eee8d1d8ff
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue