mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user