1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-02 21:26:08 +00:00

HttpWebClient: Add certificate whitelist warnning

This commit is contained in:
kaso17 2017-10-17 18:38:35 +02:00
parent f299cf3ac3
commit b9d3592f3a
2 changed files with 4 additions and 0 deletions

View file

@ -54,6 +54,8 @@ namespace Jackett.Utils.Clients
if (hosts.Contains(request.Host))
return true;
}
if (trustedCertificates.Count > 0)
logger.Warn("Certificate hash {0} for {1} isn't whitelisted (whitelist cleanup needed?)", hash, request.Host);
return sslPolicyErrors == SslPolicyErrors.None;
};
}

View file

@ -84,6 +84,8 @@ namespace Jackett.Utils.Clients
if (hosts.Contains(request.Host))
return true;
}
if (trustedCertificates.Count > 0)
logger.Warn("Certificate hash {0} for {1} isn't whitelisted (whitelist cleanup needed?)", hash, request.Host);
return sslPolicyErrors == SslPolicyErrors.None;
};
}