aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-10 17:18:50 +0300
committerGravatar Vitaly Takmazov2016-11-10 17:18:50 +0300
commit7dac07673b54e5c53a1e964a4c2f189289e4ffb2 (patch)
tree9075321e4b136f18b76181e76cf375c5103bb617 /juick-xmpp
parent4a140f0a7ea988c2be47186c23a9f750f9ba597d (diff)
xmpp: using right component name now
Diffstat (limited to 'juick-xmpp')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/XMPPServer.java2
1 files changed, 1 insertions, 1 deletions
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 96023873..e533ebaf 100644
--- a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java
+++ b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java
@@ -76,7 +76,7 @@ public class XMPPServer implements DisposableBean, Stream.StreamListener,
service.submit(() -> {
try {
Socket routerSocket = new Socket("localhost", componentPort);
- router = new StreamComponent(new JID("s2s"), routerSocket.getInputStream(), routerSocket.getOutputStream(), env.getProperty("xmpp_password"));
+ router = new StreamComponent(new JID(componentName), routerSocket.getInputStream(), routerSocket.getOutputStream(), env.getProperty("xmpp_password"));
router.addChildParser(new JuickMessage());
router.addListener((Stream.StreamListener) this);
router.addListener((Message.MessageListener) this);