Skip to content

Commit 6bddb53

Browse files
renemadsenclaude
andcommitted
fix: port is already int, remove redundant int.Parse
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 634ad95 commit 6bddb53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eFormAPI/eFormAPI.Web/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ private static IHost BuildWebHost(string[] args)
486486
webBuilder.ConfigureKestrel(serverOptions =>
487487
{
488488
serverOptions.Limits.MaxRequestBodySize = 100 * 1024 * 1024;// 100Mb
489-
var restPort = int.Parse(port);
490-
var grpcPort = restPort + 1;
489+
var restPort = port;
490+
var grpcPort = port + 1;
491491
// REST + web: HTTP/1.1 and HTTP/2
492492
serverOptions.ListenAnyIP(restPort, listenOptions =>
493493
{

0 commit comments

Comments
 (0)