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:
parent
f299cf3ac3
commit
b9d3592f3a
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue