diff --git a/SimpleHttpServer/HttpServer.cs b/SimpleHttpServer/HttpServer.cs index 4900784..baf27fc 100644 --- a/SimpleHttpServer/HttpServer.cs +++ b/SimpleHttpServer/HttpServer.cs @@ -24,12 +24,13 @@ public sealed class HttpServer { conf = configuration; listener = new HttpListener(); listener.Prefixes.Add($"http://localhost:{port}/"); + listener.Prefixes.Add($"http://[::1]:{port}/"); mainLogger = new(LogOutputTopic.Main, conf); requestLogger = new(LogOutputTopic.Request, conf); } public void Start() { - mainLogger.Information($"Starting on port {Port}..."); + mainLogger.Information($"Starting on port {Port} (IPv4+IPv6)..."); Assert(listenerTask == null, "Server was already started!"); listener.Start(); listenerTask = Task.Run(GetContextLoopAsync);