From 17511f33332fd298779765b49a4817a4b2503c45 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 1 Aug 2016 13:48:29 +0300 Subject: xmpp: read s2s port from config --- juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-ws') diff --git a/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java b/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java index b737b5d9..544d9179 100644 --- a/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java +++ b/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java @@ -181,6 +181,7 @@ public class XMPPComponent implements ServletContextListener, Stream.StreamListe HOSTNAME = conf.getProperty("hostname"); componentName = conf.getProperty("componentname"); int componentPort = NumberUtils.toInt(conf.getProperty("component_port"), 5347); + int s2sPort = NumberUtils.toInt(conf.getProperty("s2s_port"), 5269); JID Jid = new JID(conf.getProperty("xmppbot_jid")); STATSFILE = conf.getProperty("statsfile"); keystore = conf.getProperty("keystore"); @@ -210,7 +211,7 @@ public class XMPPComponent implements ServletContextListener, Stream.StreamListe } }); executorService.submit(() -> { - final ServerSocket listener = new ServerSocket(5269); + final ServerSocket listener = new ServerSocket(s2sPort); logger.info("s2s listener ready"); while (true) { try { -- cgit v1.2.3