2019-04-23 04:47:07 +00:00
|
|
|
From faa24a31538552e4bf1ee189e86a98c49798bb93 Mon Sep 17 00:00:00 2001
|
2018-07-15 01:53:17 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sat, 16 Apr 2016 00:39:33 -0400
|
|
|
|
Subject: [PATCH] Configurable RCON IP address
|
|
|
|
|
|
|
|
For servers with multiple IP's, ability to bind to a specific interface.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/RemoteControlListener.java b/src/main/java/net/minecraft/server/RemoteControlListener.java
|
2019-04-23 04:47:07 +00:00
|
|
|
index 81a6a8fc9e..7b82c4dea2 100644
|
2018-07-15 01:53:17 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/RemoteControlListener.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/RemoteControlListener.java
|
2019-01-01 03:15:55 +00:00
|
|
|
@@ -24,7 +24,7 @@ public class RemoteControlListener extends RemoteConnectionThread {
|
2018-07-15 01:53:17 +00:00
|
|
|
super(iminecraftserver, "RCON Listener");
|
|
|
|
this.h = iminecraftserver.a("rcon.port", 0);
|
|
|
|
this.l = iminecraftserver.a("rcon.password", "");
|
|
|
|
- this.j = iminecraftserver.e();
|
2018-07-25 05:24:28 +00:00
|
|
|
+ this.j = iminecraftserver.a("rcon.ip", ((DedicatedServer) iminecraftserver).getServerIp()); // Paper
|
2018-08-26 18:11:49 +00:00
|
|
|
this.i = iminecraftserver.e_();
|
2018-07-15 01:53:17 +00:00
|
|
|
if (0 == this.h) {
|
|
|
|
this.h = this.i + 10;
|
|
|
|
--
|
2019-04-23 04:47:07 +00:00
|
|
|
2.21.0
|
2018-07-15 01:53:17 +00:00
|
|
|
|