From 8b12cd78152f4bf039962a31d6c6b480dfeb778a Mon Sep 17 00:00:00 2001 From: Sour Date: Sat, 11 May 2019 21:59:29 -0400 Subject: [PATCH] Updates: Enable TLS 1.1/1.2 support to fix connection issues with mesen.ca under https --- GUI.NET/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GUI.NET/Program.cs b/GUI.NET/Program.cs index ed49b33e..b8be9e25 100644 --- a/GUI.NET/Program.cs +++ b/GUI.NET/Program.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; +using System.Net; using System.Reflection; using System.Runtime.ExceptionServices; using System.Runtime.InteropServices; @@ -82,6 +83,9 @@ namespace Mesen.GUI Application.ThreadException += Application_ThreadException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; + //Enable TLS 1.0/1.1/1.2 support + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false);