mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Add Windows support for the IgnoreSslErrors option (#594)
This commit is contained in:
@@ -27,6 +27,11 @@ namespace Jackett.Utils.Clients
|
||||
|
||||
public void Init()
|
||||
{
|
||||
if (Startup.IgnoreSslErrors == true)
|
||||
{
|
||||
logger.Info(string.Format("WindowsWebClient: Disabling certificate validation"));
|
||||
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => { return true; };
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<WebClientByteResult> GetBytes(WebRequest request)
|
||||
|
Reference in New Issue
Block a user