mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
fix whitespaces
This commit is contained in:
@@ -72,45 +72,43 @@ namespace Jackett.Common.Models.Config
|
|||||||
public RuntimeSettings ToRunTimeSettings()
|
public RuntimeSettings ToRunTimeSettings()
|
||||||
{
|
{
|
||||||
var options = this;
|
var options = this;
|
||||||
var runtimeSettings = new RuntimeSettings();
|
var runtimeSettings = new RuntimeSettings();
|
||||||
// Logging
|
// Logging
|
||||||
if (options.Logging)
|
if (options.Logging)
|
||||||
runtimeSettings.LogRequests = true;
|
runtimeSettings.LogRequests = true;
|
||||||
|
|
||||||
// Tracing
|
// Tracing
|
||||||
if (options.Tracing)
|
if (options.Tracing)
|
||||||
runtimeSettings.TracingEnabled = true;
|
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;
|
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user