Fix #4982: replaced CloudFlareUtilities with CloudflareSolverRe (#5897)

This commit is contained in:
Hazem Ahmed Amr
2019-08-22 21:35:49 +02:00
committed by garfield69
parent d343046e61
commit 90c224fdea
5 changed files with 25 additions and 21 deletions

View File

@@ -9,7 +9,7 @@ using System.Text;
using System.Threading.Tasks;
using com.LandonKey.SocksWebProxy;
using com.LandonKey.SocksWebProxy.Proxy;
using CloudFlareUtilities;
using CloudflareSolverRe;
using Jackett.Common.Models.Config;
using Jackett.Common.Services.Interfaces;
using NLog;
@@ -122,8 +122,8 @@ namespace Jackett.Common.Utils.Clients
public void CreateClient()
{
clearanceHandlr = new ClearanceHandler();
clearanceHandlr.MaxRetries = 30;
clearanceHandlr = new ClearanceHandler(BrowserUtil.ChromeUserAgent);
clearanceHandlr.MaxTries = 30;
clientHandlr = new HttpClientHandler
{
CookieContainer = cookies,