From 4c8ea193e4d0ebd1dced29609ba27e71129bed56 Mon Sep 17 00:00:00 2001 From: Alexander Milster Date: Wed, 18 Oct 2023 09:36:57 +0200 Subject: [PATCH] Fixed small error for local mode. --- cli/src/main/java/de/jplag/cli/server/ReportViewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main/java/de/jplag/cli/server/ReportViewer.java b/cli/src/main/java/de/jplag/cli/server/ReportViewer.java index af9df1853..77c847d34 100644 --- a/cli/src/main/java/de/jplag/cli/server/ReportViewer.java +++ b/cli/src/main/java/de/jplag/cli/server/ReportViewer.java @@ -35,7 +35,7 @@ public int start() throws IOException { if (server != null) { throw new IllegalStateException("Server already started"); } - server = HttpServer.create(new InetSocketAddress(InetAddress.getLocalHost(), 0), 0); + server = HttpServer.create(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0), 0); server.createContext("/", this); server.setExecutor(null); server.start();