mirror of
https://github.com/GeyserMC/GeyserConnect.git
synced 2025-06-26 22:16:37 +02:00
Remove un-used remote address config options
This commit is contained in:
parent
d84ecbd8e5
commit
95d9c5c756
3 changed files with 0 additions and 15 deletions
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue