Skip to content

Commit

Permalink
Fix https crash for kestrel core
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Mar 9, 2024
1 parent d514157 commit e9f9663
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ArchiSteamFarm/IPC/ArchiKestrel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,13 @@ private static async Task<WebApplication> CreateWebApplication() {
}
);

builder.WebHost.UseKestrelCore();
if (customConfigExists) {
// User might be using HTTPS when providing custom config, use full implementation of Kestrel for that scenario
builder.WebHost.UseKestrel();
} else {
// We don't need extra features when not using custom config
builder.WebHost.UseKestrelCore();
}

ConfigureServices(builder.Configuration, builder.Services);

Expand Down

0 comments on commit e9f9663

Please sign in to comment.