Possible SSL Fix (same as FlowframesInstaller)

This commit is contained in:
N00MKRAD
2021-05-21 16:32:15 +02:00
parent 57737e0df5
commit 08195b4da6
2 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ namespace Flowframes.IO
{
class ModelDownloader
{
public static async Task<Dictionary<string, string>> GetFilelist (string ai, string model)
{
var client = new WebClient();

View File

@@ -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());