mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Remove Static Configuration Class and .NET Core Prep (#2122)
* Remove static configuration class that required prior knowledge of when it was initialised to dependency injected method that ensures all configuration has already occured. * Specify a different log name for the updater, require a path when running the Jackett updater * Update to all .NET Standard packages * Explicitly specify the restore project style * Move automapper out of the DI framework and put crude detection to prevent it from initializing more than once.
This commit is contained in:

committed by
flightlevel

parent
fe504ed660
commit
1c62504b22
@@ -139,7 +139,7 @@ namespace Jackett
|
||||
}
|
||||
}
|
||||
|
||||
if (JackettStartup.DoSSLFix == true)
|
||||
if (config.RuntimeSettings.DoSSLFix == true)
|
||||
{
|
||||
// http://stackoverflow.com/questions/31107851/how-to-fix-curl-35-cannot-communicate-securely-with-peer-no-common-encryptio
|
||||
// https://git.fedorahosted.org/cgit/mod_nss.git/plain/docs/mod_nss.html
|
||||
@@ -148,7 +148,7 @@ namespace Jackett
|
||||
easy.ForbidReuse = true;
|
||||
}
|
||||
|
||||
if (JackettStartup.IgnoreSslErrors == true)
|
||||
if (config.RuntimeSettings.IgnoreSslErrors == true)
|
||||
{
|
||||
easy.SetOpt(CurlOption.SslVerifyhost, false);
|
||||
easy.SetOpt(CurlOption.SslVerifyPeer, false);
|
||||
|
Reference in New Issue
Block a user