mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Configurable RCON IP address to bind to
This commit is contained in:
parent
d46f2997c2
commit
06e483502f
21
Spigot-Server-Patches/Configurable-RCON-IP-address.patch
Normal file
21
Spigot-Server-Patches/Configurable-RCON-IP-address.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
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
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/RemoteControlListener.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/RemoteControlListener.java
|
||||||
|
@@ -0,0 +0,0 @@ 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;
|
||||||
|
--
|
@ -64,6 +64,7 @@ import PathfinderAbstract
|
|||||||
import PathfinderGoalFloat
|
import PathfinderGoalFloat
|
||||||
import PathfinderWater
|
import PathfinderWater
|
||||||
import PersistentVillage
|
import PersistentVillage
|
||||||
|
import RemoteControlListener
|
||||||
import TileEntityEnderChest
|
import TileEntityEnderChest
|
||||||
import WorldProvider
|
import WorldProvider
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user