mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-15 21:14:32 +01:00
Fix NullRef in Cloudflare detection service
This commit is contained in:
parent
4dee1d65d1
commit
8b8d0b24ae
2 changed files with 2 additions and 3 deletions
|
|
@ -32,8 +32,8 @@ public static bool IsCloudflareProtected(HttpResponse response)
|
|||
}
|
||||
|
||||
// detect Custom CloudFlare for EbookParadijs, Film-Paleis, MuziekFabriek and Puur-Hollands
|
||||
if (response.Headers.Vary.ToString() == "Accept-Encoding,User-Agent" &&
|
||||
response.Headers.ContentEncoding.ToString() == "" &&
|
||||
if (response.Headers.Vary == "Accept-Encoding,User-Agent" &&
|
||||
response.Headers.ContentEncoding == "" &&
|
||||
response.Content.ToLower().Contains("ddos"))
|
||||
{
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ namespace NzbDrone.Core.IndexerProxies.FlareSolverr
|
|||
{
|
||||
public class FlareSolverr : HttpIndexerProxyBase<FlareSolverrSettings>
|
||||
{
|
||||
private static readonly HashSet<string> CloudflareServerNames = new HashSet<string> { "cloudflare", "cloudflare-nginx", "ddos-guard" };
|
||||
private readonly ICached<string> _cache;
|
||||
|
||||
public FlareSolverr(IProwlarrCloudRequestBuilder cloudRequestBuilder, IHttpClient httpClient, Logger logger, ILocalizationService localizationService, ICacheManager cacheManager)
|
||||
|
|
|
|||
Loading…
Reference in a new issue