mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fixed: Certificate validation for local IP addresses instead of hostnames
This commit is contained in:
parent
d1f0b3a222
commit
a544d564a9
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ namespace NzbDrone.Core.Security
|
||||||
return true;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue