From 3315397934dcb84ff5de63ec0ee4b621450fd120 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 15 Dec 2021 01:43:18 +0100 Subject: [PATCH] add legacy connection toString (#604) --- .../proxy/connection/client/HandshakeSessionHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java index bcc0c99d3..74e7ad080 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java @@ -229,5 +229,10 @@ public class HandshakeSessionHandler implements MinecraftSessionHandler { public ProtocolVersion getProtocolVersion() { return ProtocolVersion.LEGACY; } + + @Override + public String toString() { + return "[legacy connection] " + this.getRemoteAddress().toString(); + } } }