fix listener prefix to force ipv4 localhost connection

This commit is contained in:
GHXX 2026-05-28 01:40:15 +02:00
parent 4571b979fd
commit fb91d099ac

View File

@ -24,7 +24,7 @@ public sealed class HttpServer {
Port = port;
conf = configuration;
listener = new HttpListener();
listener.Prefixes.Add($"http://localhost:{port}/");
listener.Prefixes.Add($"http://127.0.0.1:{port}/");
mainLogger = new(LogOutputTopic.Main, conf);
requestLogger = new(LogOutputTopic.Request, conf);
}