1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-24 16:53:54 +00:00

Fixed: Certificate validation for local IP addresses instead of hostnames

This commit is contained in:
Mark McDowall 2019-04-09 20:57:12 -07:00
parent 35f28bdc71
commit c718db21da

View file

@ -58,7 +58,8 @@ namespace NzbDrone.Core.Security
return true;
}
if (certificateValidation == CertificateValidationType.DisabledForLocalAddresses && host.AddressList.All(i => i.IsLocalAddress()))
if (certificateValidation == CertificateValidationType.DisabledForLocalAddresses &&
host.AddressList.All(i => i.IsIPv6LinkLocal || i.IsLocalAddress()))
{
return true;
}