mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-22 02:08:27 +01:00
Fix rogue detection for remote subservers
This commit is contained in:
parent
8a18b6f5d1
commit
3e78536d08
@ -144,7 +144,7 @@ public class PacketLinkServer implements InitialPacket, PacketObjectIn<Integer>,
|
|||||||
Logger.get("SubData").info(client.getAddress().toString() + " has been defined as " + ((server instanceof SubServer) ? "SubServer" : "Server") + ": " + server.getName() + ((channel > 0)?" [+"+channel+"]":""));
|
Logger.get("SubData").info(client.getAddress().toString() + " has been defined as " + ((server instanceof SubServer) ? "SubServer" : "Server") + ": " + server.getName() + ((channel > 0)?" [+"+channel+"]":""));
|
||||||
Runnable register = () -> {
|
Runnable register = () -> {
|
||||||
if (server instanceof SubServer && !((SubServer) server).isRunning()) {
|
if (server instanceof SubServer && !((SubServer) server).isRunning()) {
|
||||||
if (((SubServer) server).getHost().isAvailable()) {
|
if (((SubServer) server).isAvailable()) {
|
||||||
Logger.get("SubServers").info("Sending shutdown signal to rogue SubServer: " + server.getName());
|
Logger.get("SubServers").info("Sending shutdown signal to rogue SubServer: " + server.getName());
|
||||||
client.sendPacket(new PacketOutExReset("Rogue SubServer Detected"));
|
client.sendPacket(new PacketOutExReset("Rogue SubServer Detected"));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user