Skip to content

Commit a150324

Browse files
committed
Fix HealthCheckService for Windows
Signed-off-by: Mikhail Agapov <mikhail.agapov@decentraland.org>
1 parent da40138 commit a150324

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DCLPulse/HealthCheckService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ public sealed class HealthCheckService(
99
{
1010
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
1111
{
12-
var prefix = $"http://+:{(int)options.Value.Port}/";
12+
string host = OperatingSystem.IsWindows() ? "localhost" : "+";
13+
var prefix = $"http://{host}:{(int)options.Value.Port}/";
1314

1415
var listener = new HttpListener();
1516
listener.Prefixes.Add(prefix);

0 commit comments

Comments
 (0)