From 08195b4da69c8f62d7ecb374c93c5e5087c1a3bc Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Fri, 21 May 2021 16:32:15 +0200 Subject: [PATCH] Possible SSL Fix (same as FlowframesInstaller) --- Code/IO/ModelDownloader.cs | 1 + Code/Program.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Code/IO/ModelDownloader.cs b/Code/IO/ModelDownloader.cs index 9f90a926..d06a603d 100644 --- a/Code/IO/ModelDownloader.cs +++ b/Code/IO/ModelDownloader.cs @@ -14,6 +14,7 @@ namespace Flowframes.IO { class ModelDownloader { + public static async Task> GetFilelist (string ai, string model) { var client = new WebClient(); diff --git a/Code/Program.cs b/Code/Program.cs index a89dddcb..630c0ca7 100644 --- a/Code/Program.cs +++ b/Code/Program.cs @@ -4,6 +4,7 @@ using Flowframes.OS; using System; using System.Collections.Generic; +using System.Net; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; @@ -31,6 +32,9 @@ static void Main() if (Config.GetBool(Config.Key.delLogsOnStartup)) IOUtils.DeleteContentsOfDir(Paths.GetLogPath()); // Clear out older logs from previous session + ServicePointManager.Expect100Continue = true; + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; + Networks.Init(); Task.Run(() => DiskSpaceCheckLoop());