From 9c22987d6309b91fbe41bd47e410b1f809144c41 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 30 Jan 2018 12:50:35 +0300 Subject: xmpp: fix dialback --- juick-xmpp/src/main/java/com/juick/components/XMPPServer.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-xmpp/src/main/java/com/juick') diff --git a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java index 4b3470a7..15e2ba46 100644 --- a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java +++ b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java @@ -256,6 +256,8 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { try { Socket socket = new Socket(); socket.connect(DNSQueries.getServerAddress(to)); + connectionOut.setInputStream(socket.getInputStream()); + connectionOut.setOutputStream(socket.getOutputStream()); addConnectionOut(connectionOut, Optional.of(socket)); connectionOut.addChildParser(new JuickMessage()); connectionOut.connect(); -- cgit v1.2.3