Remove un-used remote address config options

This commit is contained in:
rtm516 2021-06-05 01:14:59 +01:00
parent d84ecbd8e5
commit 95d9c5c756
No known key found for this signature in database
GPG key ID: 331715B8B007C67A
3 changed files with 0 additions and 15 deletions

View file

@ -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 {

View file

@ -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

View file

@ -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