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:
parent
94f51cf124
commit
0ef35492bc
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue