2023-09-25 23:30:58 +02:00
|
|
|
From eba275ee93b6bc3a7159b427138320eeb8eaa30c Mon Sep 17 00:00:00 2001
|
2016-05-28 18:34:39 +02:00
|
|
|
From: Janmm14 <computerjanimaus@yahoo.de>
|
|
|
|
Date: Sat, 12 Dec 2015 23:43:30 +0100
|
2019-03-30 19:01:17 +01:00
|
|
|
Subject: [PATCH] Improve server list ping logging
|
2016-05-28 18:34:39 +02:00
|
|
|
|
2019-03-30 19:01:17 +01:00
|
|
|
This functionality of this patch was adopted upstream, however, this
|
|
|
|
patch remains for a few misc improvements around here
|
2016-05-28 18:34:39 +02:00
|
|
|
|
2016-11-26 21:39:19 +01:00
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
|
2023-09-21 12:33:23 +02:00
|
|
|
index 56e500a1..0ef085ef 100644
|
2016-11-26 21:39:19 +01:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
|
2023-09-21 12:33:23 +02:00
|
|
|
@@ -500,6 +500,6 @@ public class ServerConnector extends PacketHandler
|
2016-11-26 21:39:19 +01:00
|
|
|
@Override
|
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
- return "[" + user.getName() + "] <-> ServerConnector [" + target.getName() + "]";
|
|
|
|
+ return "[" + user.getName() + "|" + user.getAddress() + "] <-> ServerConnector [" + target.getName() + "]";
|
|
|
|
}
|
|
|
|
}
|
2016-05-28 18:34:39 +02:00
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java
|
2023-09-21 12:33:23 +02:00
|
|
|
index 23e7b6d8..88b0156c 100644
|
2016-05-28 18:34:39 +02:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java
|
2023-09-21 12:33:23 +02:00
|
|
|
@@ -774,6 +774,6 @@ public class DownstreamBridge extends PacketHandler
|
2016-05-28 18:34:39 +02:00
|
|
|
@Override
|
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
- return "[" + con.getName() + "] <-> DownstreamBridge <-> [" + server.getInfo().getName() + "]";
|
|
|
|
+ return "[" + con.getAddress() + "|" + con.getName() + "] <-> DownstreamBridge <-> [" + server.getInfo().getName() + "]";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
2023-09-25 23:30:58 +02:00
|
|
|
index c1e5a156..1f9a54f2 100644
|
2016-05-28 18:34:39 +02:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
2023-09-21 12:33:23 +02:00
|
|
|
@@ -741,20 +741,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
2016-05-28 18:34:39 +02:00
|
|
|
@Override
|
|
|
|
public String toString()
|
|
|
|
{
|
2020-02-01 16:39:53 +01:00
|
|
|
- StringBuilder sb = new StringBuilder();
|
|
|
|
- sb.append( '[' );
|
|
|
|
-
|
|
|
|
- String currentName = getName();
|
|
|
|
- if ( currentName != null )
|
|
|
|
- {
|
|
|
|
- sb.append( currentName );
|
|
|
|
- sb.append( ',' );
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- sb.append( getSocketAddress() );
|
|
|
|
- sb.append( "] <-> InitialHandler" );
|
|
|
|
-
|
|
|
|
- return sb.toString();
|
2020-01-21 18:36:22 +01:00
|
|
|
+ return "[" + getSocketAddress() + ( getName() != null ? "|" + getName() : "" ) + "] <-> InitialHandler";
|
2016-05-28 18:34:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java
|
2023-09-25 23:30:58 +02:00
|
|
|
index 0e5d0a47..37178082 100644
|
2016-05-28 18:34:39 +02:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java
|
2023-09-25 23:30:58 +02:00
|
|
|
@@ -372,6 +372,6 @@ public class UpstreamBridge extends PacketHandler
|
2016-05-28 18:34:39 +02:00
|
|
|
@Override
|
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
- return "[" + con.getName() + "] -> UpstreamBridge";
|
|
|
|
+ return "[" + con.getAddress() + "|" + con.getName() + "] -> UpstreamBridge";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2023-09-25 23:30:58 +02:00
|
|
|
2.42.0
|
2016-05-28 18:34:39 +02:00
|
|
|
|