diff options
Diffstat (limited to 'Spigot-Server-Patches/0118-Configurable-RCON-IP-address.patch')
-rw-r--r-- | Spigot-Server-Patches/0118-Configurable-RCON-IP-address.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0118-Configurable-RCON-IP-address.patch b/Spigot-Server-Patches/0118-Configurable-RCON-IP-address.patch new file mode 100644 index 0000000000..527777a6f9 --- /dev/null +++ b/Spigot-Server-Patches/0118-Configurable-RCON-IP-address.patch @@ -0,0 +1,23 @@ +From 3cc6bf088a830f76ece5e6bb0c607c16278258cc Mon Sep 17 00:00:00 2001 +From: Aikar <[email protected]> +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 a6a0d5a29..efcafe77f 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.12.2 + |