From 0311d123062ec05f13c2be47a92ef341877a2bf5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 2 Apr 2018 19:44:16 +0300 Subject: xmpp: fix s2s without tls configured --- juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server-xmpp/src/main/java') diff --git a/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java b/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java index c291202d..31d338df 100644 --- a/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java +++ b/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java @@ -392,7 +392,7 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { @Override public boolean securing(ConnectionOut connection) { - return !Arrays.asList(brokenSSLhosts).contains(connection.to.toEscapedString()); + return tlsConfigured && !Arrays.asList(brokenSSLhosts).contains(connection.to.toEscapedString()); } public Stanza parse(String xml) { -- cgit v1.2.3