Skip to content

Commit

Permalink
Add ssl protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
Drombeys committed Apr 26, 2024
1 parent 6b3dbe3 commit ac05f07
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ImeSense.Launchers.Belarus.Avalonia/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,19 @@ private IServiceCollection ConfigureServices()
services.AddTransient<GameDirectoryValidator>();

services.AddHttpClient<IGitStorageApiService, GitHubApiService>()
.ConfigurePrimaryHttpMessageHandler(() =>
{
return new HttpClientHandler {
SslProtocols = System.Security.Authentication.SslProtocols.Tls12
}; ;
})
.ConfigureHttpClient(ConfigureClient);
services.AddHttpClient<IFileDownloadManager, FileDownloadManager>()
.ConfigurePrimaryHttpMessageHandler(() => {
return new HttpClientHandler {
SslProtocols = System.Security.Authentication.SslProtocols.Tls12
}; ;
})
.ConfigureHttpClient(ConfigureClient);

services.AddTransient<IHashProvider, Md5HashProvider>();
Expand Down

0 comments on commit ac05f07

Please sign in to comment.