mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Possible SSL Fix (same as FlowframesInstaller)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user