aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-ws/src/main/java/com/juick')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java3
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 b737b5d91..544d91791 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 {