2018-10-05 11:31:01 +08:00
|
|
|
From 24629d8216ef7f94026a4c062775768a7463683f Mon Sep 17 00:00:00 2001
|
2018-07-15 09:53:17 +08: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
|
2018-09-01 06:56:57 +08:00
|
|
|
index 32244b55a2..4bfd41af18 100644
|
2018-07-15 09:53:17 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/RemoteControlListener.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/RemoteControlListener.java
|
2018-09-01 06:56:57 +08:00
|
|
|
@@ -23,7 +23,7 @@ public class RemoteControlListener extends RemoteConnectionThread {
|
2018-07-15 09:53:17 +08: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 13:24:28 +08:00
|
|
|
+ this.j = iminecraftserver.a("rcon.ip", ((DedicatedServer) iminecraftserver).getServerIp()); // Paper
|
2018-08-27 02:11:49 +08:00
|
|
|
this.i = iminecraftserver.e_();
|
2018-07-15 09:53:17 +08:00
|
|
|
if (0 == this.h) {
|
|
|
|
this.h = this.i + 10;
|
|
|
|
--
|
2018-09-29 07:31:59 +08:00
|
|
|
2.19.0
|
2018-07-15 09:53:17 +08:00
|
|
|
|