hconnection clienthostandport fix

This commit is contained in:
sirjonasxx 2018-10-11 20:06:23 +02:00
parent 0e3630e13b
commit 54b4b88372

View File

@ -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);