mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 00:40:51 +01:00
hconnection clienthostandport fix
This commit is contained in:
parent
0e3630e13b
commit
54b4b88372
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user