fix: enable all SSL types in EntryPoint

This commit is contained in:
goat 2020-02-06 22:23:02 +09:00
parent 47bae57d75
commit 38b82a9dd8
2 changed files with 5 additions and 6 deletions

View file

@ -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.");