diff --git a/src/GZCTF/Program.cs b/src/GZCTF/Program.cs index dce9549c8..8c0037112 100644 --- a/src/GZCTF/Program.cs +++ b/src/GZCTF/Program.cs @@ -27,6 +27,13 @@ WebApplicationBuilder builder = WebApplication.CreateBuilder(args); +builder.WebHost.ConfigureKestrel(options => +{ + var kestrelSection = builder.Configuration.GetSection("Kestrel"); + options.Configure(kestrelSection); + kestrelSection.Bind(options); +}); + Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); GZCTF.Program.Banner();