From 301931866a33ec8355d6c5d6cc32319270632ba3 Mon Sep 17 00:00:00 2001 From: Sodium-Aluminate Date: Wed, 15 Nov 2023 23:15:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94edison=E8=A6=81=E6=B1=82=EF=BC=8C?= =?UTF-8?q?=E4=BB=85listen=20localhost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/de/strifel/VTools/OnlinePlayerQueryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/strifel/VTools/OnlinePlayerQueryService.java b/src/main/java/de/strifel/VTools/OnlinePlayerQueryService.java index ff3fe2d..3422a3f 100644 --- a/src/main/java/de/strifel/VTools/OnlinePlayerQueryService.java +++ b/src/main/java/de/strifel/VTools/OnlinePlayerQueryService.java @@ -24,7 +24,7 @@ public class OnlinePlayerQueryService { public void register() { try { - HttpServer server = HttpServer.create(new InetSocketAddress(17611), 0); + HttpServer server = HttpServer.create(new InetSocketAddress("127.0.0.1", 17611), 0); server.createContext("/api/getOnlinePlayers", exchange -> { Collection players = plugin.getServer().getAllPlayers();