fix listener prefix to force ipv4 localhost connection
This commit is contained in:
1 parent
4571b979fd
commit
fb91d099ac
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user