Fixed: Certificate validation for local IP addresses instead of hostnames

pull/6/head
Mark McDowall 6 years ago committed by Qstick
parent 94f51cf124
commit 0ef35492bc

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

Loading…
Cancel
Save