Skip to content

Commit

Permalink
To avoid windows firewall warnings when running csharpier as a server…
Browse files Browse the repository at this point in the history
…, bind it to the loopback address (#1184)
  • Loading branch information
belav authored Feb 19, 2024
1 parent bcc992f commit 93bbf59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/CSharpier.Cli/ServerFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ CancellationToken cancellationToken
builder.WebHost.ConfigureKestrel(
(_, serverOptions) =>
{
serverOptions.Listen(IPAddress.Any, thePort);
serverOptions.Listen(IPAddress.Loopback, thePort);
}
);

var app = builder.Build();
var service = new CSharpierServiceImplementation(actualConfigPath, logger);
app.MapPost(
Expand Down

0 comments on commit 93bbf59

Please sign in to comment.