diff options
author | Vitaly Takmazov | 2018-04-02 19:44:16 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-02 19:44:16 +0300 |
commit | 0311d123062ec05f13c2be47a92ef341877a2bf5 (patch) | |
tree | 27243582d6e440bca811a4813036afe5caee9132 /juick-server-xmpp/src/main/java | |
parent | e227f5c54cbf9d2d20fde3893b36b6c49b42392b (diff) |
xmpp: fix s2s without tls configured
Diffstat (limited to 'juick-server-xmpp/src/main/java')
-rw-r--r-- | juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |