diff --git a/src/main/java/org/geysermc/connect/GeyserConnectConfig.java b/src/main/java/org/geysermc/connect/GeyserConnectConfig.java index 8a0f717..753a7b0 100644 --- a/src/main/java/org/geysermc/connect/GeyserConnectConfig.java +++ b/src/main/java/org/geysermc/connect/GeyserConnectConfig.java @@ -42,9 +42,6 @@ public class GeyserConnectConfig { private String address; - @JsonProperty("remote-address") - private String remoteAddress; - private int port; @JsonProperty("max-players") @@ -69,13 +66,6 @@ public class GeyserConnectConfig { private VirtualHostSection vhost; - public void checkRemoteIP() { - if ("auto".equals(remoteAddress)) { - remoteAddress = WebUtils.getBody("https://icanhazip.com/").trim(); - MasterServer.getInstance().getLogger().debug("Auto set remote IP to: " + remoteAddress); - } - } - @Getter public static class GeyserConfigSection { diff --git a/src/main/java/org/geysermc/connect/MasterServer.java b/src/main/java/org/geysermc/connect/MasterServer.java index 51d967c..49e3e89 100644 --- a/src/main/java/org/geysermc/connect/MasterServer.java +++ b/src/main/java/org/geysermc/connect/MasterServer.java @@ -105,8 +105,6 @@ public class MasterServer { logger.setDebug(geyserConnectConfig.isDebugMode()); - geyserConnectConfig.checkRemoteIP(); - this.generalThreadPool = Executors.newScheduledThreadPool(32); // Start a timer to keep the thread running diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index cacbfe9..180925e 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -5,9 +5,6 @@ # The IP address that will listen for connections address: 0.0.0.0 -# The IP address remote clients use to connect, can be set to 'auto' to fetch from the web -remote-address: auto - # The port that will listen for connections port: 19132