fix listener prefix to force ipv4 localhost connection
This commit is contained in:
@@ -24,7 +24,7 @@ public sealed class HttpServer {
|
|||||||
Port = port;
|
Port = port;
|
||||||
conf = configuration;
|
conf = configuration;
|
||||||
listener = new HttpListener();
|
listener = new HttpListener();
|
||||||
listener.Prefixes.Add($"http://localhost:{port}/");
|
listener.Prefixes.Add($"http://127.0.0.1:{port}/");
|
||||||
mainLogger = new(LogOutputTopic.Main, conf);
|
mainLogger = new(LogOutputTopic.Main, conf);
|
||||||
requestLogger = new(LogOutputTopic.Request, conf);
|
requestLogger = new(LogOutputTopic.Request, conf);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user