core: refactor http webclient part 11 #8529 (#7728)

Remove redundant NetCore classes and update client selection logic
This commit is contained in:
Cory
2020-03-20 14:38:38 -05:00
committed by ngosang
parent 3a0ece162f
commit e0ef6bc8a8
5 changed files with 3 additions and 507 deletions

View File

@@ -4,7 +4,6 @@ using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using CloudflareSolverRe;
using Jackett.Common.Helpers;
@@ -69,6 +68,8 @@ namespace Jackett.Common.Utils.Clients
public override void Init()
{
ServicePointManager.DefaultConnectionLimit = 1000;
base.Init();
ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;