From f3779fc25b5368ca8b7323cd15dd1650c83874a0 Mon Sep 17 00:00:00 2001 From: Doombox Date: Wed, 11 Mar 2020 19:30:13 +0000 Subject: [PATCH] Allowed support for Win7 so long as .NET Framework 4.8 is installed. --- PostScriptumMortarCalculator/Services/UpdateService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PostScriptumMortarCalculator/Services/UpdateService.cs b/PostScriptumMortarCalculator/Services/UpdateService.cs index 9d86f04..a722991 100644 --- a/PostScriptumMortarCalculator/Services/UpdateService.cs +++ b/PostScriptumMortarCalculator/Services/UpdateService.cs @@ -1,6 +1,7 @@ #if (!DEBUG) using System.Reflection; #endif +using System.Net; using System.Threading.Tasks; using Octokit; @@ -17,6 +18,7 @@ public class UpdateService public UpdateService() { m_client = new GitHubClient(new ProductHeaderValue("PostScriptumMortarCalculator")); + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls13; } public async Task CheckForUpdate()