|
|
|
@ -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;
|
|
|
|
|