Skip to content

Commit

Permalink
Possible SSL Fix (same as FlowframesInstaller)
Browse files Browse the repository at this point in the history
  • Loading branch information
n00mkrad committed May 21, 2021
1 parent 57737e0 commit 08195b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Code/IO/ModelDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 4 additions & 0 deletions Code/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit 08195b4

Please sign in to comment.