Skip to content

Commit

Permalink
Updated to use TLS 1.2 for GitHub API
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelayori authored Jan 16, 2021
1 parent 0df37c7 commit 4838fa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ArkApi Hook Creator/ArkApi Hook Creator/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down

0 comments on commit 4838fa1

Please sign in to comment.