Skip to content

Commit

Permalink
Fixed small error for local mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoOfTwelve committed Oct 18, 2023
1 parent c794eff commit 4c8ea19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main/java/de/jplag/cli/server/ReportViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4c8ea19

Please sign in to comment.