1
0
Fork 0
forked from mc/VTools

应edison要求,仅listen localhost

This commit is contained in:
Sodium-Aluminate 2023-11-15 23:15:02 +08:00
parent afae76d9dd
commit 301931866a

View file

@ -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<Player> players = plugin.getServer().getAllPlayers();