diff --git a/Code/IO/ModelDownloader.cs b/Code/IO/ModelDownloader.cs index 9f90a92..d06a603 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 a89dddc..630c0ca 100644 --- a/Code/Program.cs +++ b/Code/Program.cs @@ -4,6 +4,7 @@ using Flowframes.MiscUtils; 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 @@ namespace Flowframes 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());