2017-01-06 22:45:59 +01:00
|
|
|
From f2a1633a862df24f5b75b0246e23429ad8e1b652 Mon Sep 17 00:00:00 2001
|
2016-04-16 06:46:01 +02: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
|
2016-06-09 05:57:14 +02:00
|
|
|
index a6a0d5a..efcafe7 100644
|
2016-04-16 06:46:01 +02:00
|
|
|
--- 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;
|
|
|
|
--
|
2016-12-11 00:50:31 +01:00
|
|
|
2.9.3
|
2016-04-16 06:46:01 +02:00
|
|
|
|