Skip to content

Commit d12daa0

Browse files
committed
fix: try fix connection
1 parent bb46c9a commit d12daa0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
builder.Services.AddGrpc(options => options.EnableDetailedErrors = true);
66

7+
builder.WebHost.ConfigureKestrel(serverOptions =>
8+
serverOptions.ListenAnyIP(5000, listenOptions =>
9+
listenOptions.Protocols =
10+
Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols.Http2));
11+
712
using WebApplication app = builder.Build();
813

914
app.MapGrpcService<BestsService>();

0 commit comments

Comments
 (0)