We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da40138 commit a150324Copy full SHA for a150324
src/DCLPulse/HealthCheckService.cs
@@ -9,7 +9,8 @@ public sealed class HealthCheckService(
9
{
10
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
11
12
- var prefix = $"http://+:{(int)options.Value.Port}/";
+ string host = OperatingSystem.IsWindows() ? "localhost" : "+";
13
+ var prefix = $"http://{host}:{(int)options.Value.Port}/";
14
15
var listener = new HttpListener();
16
listener.Prefixes.Add(prefix);
0 commit comments