From ec0c4eb218536aea088a1104e7907b00802981c1 Mon Sep 17 00:00:00 2001 From: Resaec Date: Wed, 2 Aug 2023 00:30:17 +0200 Subject: [PATCH] Remove unnecessary HttpClientHandler code since .NET 4.8 takes care of using recent TLS versions based on system configurations. --- PSLauncher/LauncherForm.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/PSLauncher/LauncherForm.cs b/PSLauncher/LauncherForm.cs index 3eaca15..1d52e22 100644 --- a/PSLauncher/LauncherForm.cs +++ b/PSLauncher/LauncherForm.cs @@ -69,13 +69,7 @@ namespace PSLauncher // // init http client // - httpClient = new HttpClient( - new HttpClientHandler() - { - AllowAutoRedirect = false, - SslProtocols = System.Security.Authentication.SslProtocols.Tls13 | System.Security.Authentication.SslProtocols.Tls12, - } - ) + httpClient = new HttpClient { BaseAddress = new Uri(domains[domain]), Timeout = TimeSpan.FromSeconds(DEFAULT_WEB_TIMEOUT)