From 5b6fe7fb12113ec9b62aacaccc9aa17b07df4e2b Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Sun, 3 Sep 2023 05:11:21 +0100 Subject: [PATCH] iptorrents: trust expired cert for *.octopus.town --- src/Jackett.Common/Indexers/IPTorrents.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Jackett.Common/Indexers/IPTorrents.cs b/src/Jackett.Common/Indexers/IPTorrents.cs index dc03e1716..3ab0a1e09 100644 --- a/src/Jackett.Common/Indexers/IPTorrents.cs +++ b/src/Jackett.Common/Indexers/IPTorrents.cs @@ -183,6 +183,13 @@ namespace Jackett.Common.Indexers return caps; } + public override void LoadValuesFromJson(JToken jsonConfig, bool useProtectionService = false) + { + base.LoadValuesFromJson(jsonConfig, useProtectionService); + + webclient?.AddTrustedCertificate(new Uri(SiteLink).Host, "44E390F897BC01083CE3DB0E8266A210735470E3"); // for *.octopus.town expired 02/Sep/23 + } + public override async Task ApplyConfiguration(JToken configJson) { LoadValuesFromJson(configJson);