diff options
author | Vitaly Takmazov | 2016-08-01 13:48:29 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-08-01 13:48:29 +0300 |
commit | 17511f33332fd298779765b49a4817a4b2503c45 (patch) | |
tree | 8c42eb7dfb79b2dab78f16a08fd2fd0a065ba2e1 /juick-ws | |
parent | 1c3d94825fdf7f899dcad372ab7bc538a79df971 (diff) |
xmpp: read s2s port from config
Diffstat (limited to 'juick-ws')
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |