mirror of
https://github.com/Readarr/Readarr
synced 2026-01-06 15:43:19 +01: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