Added code to accept all available security protocols with HttpClient

This commit is contained in:
ruri
2020-03-18 04:06:03 +01:00
parent 060853bd62
commit 4c5d66b961
+3
View File
@@ -89,6 +89,9 @@ namespace RuriLib
{
base.Process(data);
// Accept all protocols
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;
// If the clearance info is already set and we're not getting it fresh each time, skip
if (data.UseProxies)
{