From 8ba4b647394cc9af8f94f80dcd24932790d8532e Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 16 Apr 2016 00:46:01 -0400 Subject: [PATCH] Configurable RCON IP address to bind to --- .../0142-Configurable-RCON-IP-address.patch | 23 +++++++++++++++++++ scripts/importmcdev.sh | 1 + 2 files changed, 24 insertions(+) create mode 100644 Spigot-Server-Patches/0142-Configurable-RCON-IP-address.patch diff --git a/Spigot-Server-Patches/0142-Configurable-RCON-IP-address.patch b/Spigot-Server-Patches/0142-Configurable-RCON-IP-address.patch new file mode 100644 index 000000000..6b10f275d --- /dev/null +++ b/Spigot-Server-Patches/0142-Configurable-RCON-IP-address.patch @@ -0,0 +1,23 @@ +From 6007acc66396534cc4f85e510e96a4abee2a7920 Mon Sep 17 00:00:00 2001 +From: Aikar +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 +index 8309a99..3a6561a 100644 +--- a/src/main/java/net/minecraft/server/RemoteControlListener.java ++++ b/src/main/java/net/minecraft/server/RemoteControlListener.java +@@ -24,7 +24,7 @@ public class RemoteControlListener extends RemoteConnectionThread { + super(iminecraftserver, "RCON Listener"); + this.h = iminecraftserver.a("rcon.port", 0); + this.l = iminecraftserver.a("rcon.password", ""); +- this.j = iminecraftserver.d_(); ++ this.j = iminecraftserver.a("rcon.ip", iminecraftserver.d_()); // Paper + this.i = iminecraftserver.e_(); + if (0 == this.h) { + this.h = this.i + 10; +-- +2.8.1 + diff --git a/scripts/importmcdev.sh b/scripts/importmcdev.sh index 8273de1ad..8637a1377 100755 --- a/scripts/importmcdev.sh +++ b/scripts/importmcdev.sh @@ -64,6 +64,7 @@ import PathfinderAbstract import PathfinderGoalFloat import PathfinderWater import PersistentVillage +import RemoteControlListener import TileEntityEnderChest import WorldProvider