1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-05 06:22:00 +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 committed by Qstick
parent 94f51cf124
commit 0ef35492bc

View file

@ -58,7 +58,8 @@ private bool ShouldByPassValidationError(object sender, X509Certificate certific
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;
}