From 33e56dc548b8ebf1bf63a74498eb69d4adbbd059 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Thu, 22 Feb 2018 16:05:44 -0500 Subject: [PATCH] Fix SSL/TLS error --- WindowSource.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/WindowSource.cs b/WindowSource.cs index ec35016..55589a3 100644 --- a/WindowSource.cs +++ b/WindowSource.cs @@ -4,6 +4,7 @@ using Squirrel; using System; using System.Collections.Generic; using System.Linq; +using System.Net; using System.Reflection; using System.Text; using System.Threading; @@ -33,6 +34,8 @@ namespace ProcessCpuUsageStatusWindow { try { + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; + using (var updateManager = await UpdateManager.GitHubUpdateManager(App.UpdateUrl)) { var updates = await updateManager.CheckForUpdate(); @@ -58,9 +61,9 @@ namespace ProcessCpuUsageStatusWindow UpdateManager.RestartApp(); #endif } - catch (Exception e) + catch (Exception exception) { - Console.WriteLine(e.Message); + Console.WriteLine(exception); } finally {