From e9f9663714a89ad7de7d92746298a80d6ad622c7 Mon Sep 17 00:00:00 2001 From: Archi Date: Sat, 9 Mar 2024 21:54:14 +0100 Subject: [PATCH] Fix https crash for kestrel core --- ArchiSteamFarm/IPC/ArchiKestrel.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/IPC/ArchiKestrel.cs b/ArchiSteamFarm/IPC/ArchiKestrel.cs index 6d3457620735b..69893e1289e68 100644 --- a/ArchiSteamFarm/IPC/ArchiKestrel.cs +++ b/ArchiSteamFarm/IPC/ArchiKestrel.cs @@ -453,7 +453,13 @@ private static async Task 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);