From 54b4b8837247b2f8a23e702e33a79ee6ecd6b516 Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Thu, 11 Oct 2018 20:06:23 +0200 Subject: [PATCH] hconnection clienthostandport fix --- src/main/protocol/HConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/protocol/HConnection.java b/src/main/protocol/HConnection.java index 4dfa583..038df41 100644 --- a/src/main/protocol/HConnection.java +++ b/src/main/protocol/HConnection.java @@ -265,7 +265,7 @@ public class HConnection { handler.act(buffer); if (!datastream[0] && handler.isDataStream()) { - clientHostAndPort = client.getInetAddress().getHostAddress() + ":" + client.getPort(); + clientHostAndPort = client.getLocalAddress().getHostAddress() + ":" + client.getPort(); if (DEBUG) System.out.println(clientHostAndPort); datastream[0] = true; setState(State.CONNECTED);