fix custom certificate validation handler (#3297)

* fix netcore custom certificate validator

* conditional HttpWebClientNetCore register

* deprecate IgnoreSslErrors option

* Use httpclient when running full framework
This commit is contained in:
kaso17
2018-07-02 13:05:24 +02:00
committed by GitHub
parent bc965b1a0c
commit bcc1dc1948
5 changed files with 332 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ namespace Jackett.Server
{
public static void ProcessSettings(RuntimeSettings runtimeSettings, Logger logger)
{
if (runtimeSettings.ClientOverride != "httpclient" && runtimeSettings.ClientOverride != "httpclient2")
if (runtimeSettings.ClientOverride != "httpclient" && runtimeSettings.ClientOverride != "httpclient2" && runtimeSettings.ClientOverride != "httpclientnetcore")
{
logger.Error($"Client override ({runtimeSettings.ClientOverride}) has been deprecated, please remove it from your start arguments");
Environment.Exit(1);
@@ -37,7 +37,7 @@ namespace Jackett.Server
if (runtimeSettings.IgnoreSslErrors == true)
{
logger.Info("Jackett will ignore SSL certificate errors.");
logger.Error($"The IgnoreSslErrors option has been deprecated, please remove it from your start arguments");
}
if (!string.IsNullOrWhiteSpace(runtimeSettings.CustomDataFolder))