mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-02-06 11:50:56 +02:00
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (request.RequestUri.Host == "localhost" || request.RequestUri.Host == "127.0.0.1")
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
var ipAddresses = GetIPAddresses(request.RequestUri.Host);
|
var ipAddresses = GetIPAddresses(request.RequestUri.Host);
|
||||||
var certificateValidation = _configService.CertificateValidation;
|
var certificateValidation = _configService.CertificateValidation;
|
||||||
|
|
||||||
@ -55,7 +60,6 @@ namespace NzbDrone.Core.Security
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_logger.Error("Certificate validation for {0} failed. {1}", request.Address, sslPolicyErrors);
|
_logger.Error("Certificate validation for {0} failed. {1}", request.Address, sslPolicyErrors);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user