From 1cb765a2f7cfae74fb99f85e74654d5d11bcd345 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 1 Feb 2016 20:08:09 +0300 Subject: fix router --- src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/xmpp') diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java b/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java index 73e7a65e..2532a600 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java @@ -39,7 +39,7 @@ public class ConnectionRouter extends Connection implements Runnable { try { socket = AsynchronousSocketChannel.open(); - socket.connect(new InetSocketAddress(5347), socket, new CompletionHandler() { + socket.connect(new InetSocketAddress("localhost", 5347), socket, new CompletionHandler() { @Override public void completed(Void result, AsynchronousSocketChannel client) { try { -- cgit v1.2.3