mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Revert "SSL Fix by default, Now use TLS (1.2, 1.1, 1) by default" (#339)
This commit is contained in:
@@ -69,13 +69,6 @@ namespace Jackett.Utils.Clients
|
||||
proxyServer = new WebProxy(Startup.ProxyConnection, false);
|
||||
useProxy = true;
|
||||
}
|
||||
|
||||
// SecurityProtocolType values below not available in Mono < 4.3
|
||||
const int SecurityProtocolTypeTls11 = 768;
|
||||
const int SecurityProtocolTypeTls12 = 3072;
|
||||
// Specify to use TLS 1.2 as default connection
|
||||
ServicePointManager.SecurityProtocol |= (SecurityProtocolType)(SecurityProtocolTypeTls12 | SecurityProtocolTypeTls11);
|
||||
|
||||
var client = new HttpClient(new HttpClientHandler
|
||||
{
|
||||
CookieContainer = cookies,
|
||||
|
Reference in New Issue
Block a user