mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
fix: enable all SSL types in EntryPoint
This commit is contained in:
parent
47bae57d75
commit
38b82a9dd8
2 changed files with 5 additions and 6 deletions
|
|
@ -31,10 +31,6 @@ namespace Dalamud.Data
|
|||
try {
|
||||
Log.Verbose("Starting data download...");
|
||||
|
||||
// This is due to GitHub not supporting TLS 1.0
|
||||
System.Net.ServicePointManager.SecurityProtocol =
|
||||
SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
|
||||
|
||||
using var client = new HttpClient() {
|
||||
BaseAddress = new Uri(DataBaseUrl)
|
||||
};
|
||||
|
|
@ -52,8 +48,6 @@ namespace Dalamud.Data
|
|||
|
||||
Log.Verbose("Loaded {0} ContentFinderCondition.", cfcs.Count);
|
||||
|
||||
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault;
|
||||
|
||||
IsDataReady = true;
|
||||
} catch (Exception ex) {
|
||||
Log.Error(ex, "Could not download data.");
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using Dalamud.Interface;
|
||||
using EasyHook;
|
||||
using Serilog;
|
||||
|
|
@ -18,6 +19,10 @@ namespace Dalamud {
|
|||
try {
|
||||
Log.Information("Initializing a session..");
|
||||
|
||||
// This is due to GitHub not supporting TLS 1.0, so we enable all TLS versions globally
|
||||
System.Net.ServicePointManager.SecurityProtocol =
|
||||
SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls;
|
||||
|
||||
// Log any unhandled exception.
|
||||
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue