Skip to content

Commit

Permalink
fix http2 error
Browse files Browse the repository at this point in the history
  • Loading branch information
volllly committed Jan 22, 2024
1 parent acdd068 commit 7b279dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/fiskaltrust.Launcher/Commands/RunCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,20 @@ public static async Task<int> HandleAsync(CommonOptions commonOptions, CommonPro
{
builder.WebHost.UseKestrel(serverOptions =>
{
serverOptions.ListenNamedPipe(commonProperties.LauncherConfiguration.LauncherServiceUri!);
serverOptions.ListenNamedPipe(commonProperties.LauncherConfiguration.LauncherServiceUri!, listenOptions =>
{
listenOptions.Protocols = HttpProtocols.Http2;
});
});
}
else
{
builder.WebHost.UseKestrel(serverOptions =>
{
serverOptions.ListenUnixSocket(commonProperties.LauncherConfiguration.LauncherServiceUri!);
serverOptions.ListenUnixSocket(commonProperties.LauncherConfiguration.LauncherServiceUri!, listenOptions =>
{
listenOptions.Protocols = HttpProtocols.Http2;
});
});
}

Expand Down

0 comments on commit 7b279dd

Please sign in to comment.