From 4838fa175031ae3f3d9a4f6968578bdb333e4698 Mon Sep 17 00:00:00 2001 From: Pelayori <31128562+Pelayori@users.noreply.github.com> Date: Sat, 16 Jan 2021 14:06:59 +0100 Subject: [PATCH] Updated to use TLS 1.2 for GitHub API --- ArkApi Hook Creator/ArkApi Hook Creator/Form1.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArkApi Hook Creator/ArkApi Hook Creator/Form1.cs b/ArkApi Hook Creator/ArkApi Hook Creator/Form1.cs index 20bbf66..dbb2f6c 100644 --- a/ArkApi Hook Creator/ArkApi Hook Creator/Form1.cs +++ b/ArkApi Hook Creator/ArkApi Hook Creator/Form1.cs @@ -65,7 +65,8 @@ private void LoadHeaders() { using (WebClient wc = new WebClient()) { - int ClassId = ClassIndex++; + int ClassId = ClassIndex++; + System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; wc.DownloadStringCompleted += (object s, DownloadStringCompletedEventArgs ea) => ParseArkHeader(ClassId, ClassId == ClassCount, s, ea); wc.DownloadStringAsync(new Uri("https://raw.githubusercontent.com/Michidu/ARK-Server-API/master/version/Core/Public/API/" + (GameCombo.SelectedIndex == 0 ? "ARK" : "Atlas") + "/" + ArkHeader + ".h")); }