From 0ef35492bca2ad9b8e09d9c6c6a2928895a402a7 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 9 Apr 2019 20:57:12 -0700 Subject: [PATCH] Fixed: Certificate validation for local IP addresses instead of hostnames --- src/NzbDrone.Core/Security/X509CertificateValidationPolicy.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Security/X509CertificateValidationPolicy.cs b/src/NzbDrone.Core/Security/X509CertificateValidationPolicy.cs index 2dea7f7f0..4b5bc096f 100644 --- a/src/NzbDrone.Core/Security/X509CertificateValidationPolicy.cs +++ b/src/NzbDrone.Core/Security/X509CertificateValidationPolicy.cs @@ -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; }