Fixed: Unnecessary certificate validation errors on localhost/loopback
closes #4215
This commit is contained in:
parent
5668152d6f
commit
c28cafba0a
|
@ -41,6 +41,11 @@ namespace NzbDrone.Core.Security
|
|||
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;
|
||||
|
||||
|
@ -55,7 +60,6 @@ namespace NzbDrone.Core.Security
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
_logger.Error("Certificate validation for {0} failed. {1}", request.Address, sslPolicyErrors);
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue