From a36fdd64d0f3e9b3410cb9b02be3ec08cd1a6789 Mon Sep 17 00:00:00 2001 From: Akshathkumar Shetty Date: Sun, 13 Apr 2014 11:44:00 +0530 Subject: [PATCH] bug fix --- src/main/com/quickserverlab/quicklb/server/CommandHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/com/quickserverlab/quicklb/server/CommandHandler.java b/src/main/com/quickserverlab/quicklb/server/CommandHandler.java index 87f2eda..b783a90 100644 --- a/src/main/com/quickserverlab/quicklb/server/CommandHandler.java +++ b/src/main/com/quickserverlab/quicklb/server/CommandHandler.java @@ -64,7 +64,7 @@ public void gotConnected(ClientHandler handler) logger.log(Level.FINEST, "SocketBasedHost: {0}", host); Data data = (Data) handler.getClientData(); - data.setRemoteHost(host.getInetSocketAddress().getAddress().getHostAddress()); + data.setRemoteHost(host.getInetAddress().getHostAddress()); data.setRemotePort(host.getInetSocketAddress().getPort()); data.setInterfaceServer(interfaceServer);