mirror of
https://github.com/Radarr/Radarr
synced 2025-02-25 15:43:08 +00:00
Fixed: Unnecessary certificate validation errors on localhost/loopback
(cherry picked from commit c28cafba0a1b92f065541ebdae9db06ab1e5ac82)
This commit is contained in:
parent
8d651e6f7a
commit
e2b2061ee1
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ private bool ShouldByPassValidationError(object sender, X509Certificate certific
|
|||
return true;
|
||||
}
|
||||
|
||||
if (request.RequestUri.Host == "localhost" || request.RequestUri.Host == "127.0.0.1")
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var ipAddresses = GetIPAddresses(request.RequestUri.Host);
|
||||
var certificateValidation = _configService.CertificateValidation;
|
||||
|
||||
|
|
Loading…
Reference in a new issue