fix listener prefix to force ipv4 localhost connection
This commit is contained in:
parent
4571b979fd
commit
fb91d099ac
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user