Don't use TLS connection handler when SSL/TLS not available or configured (thanks...
authorMatthew Wild <mwild1@gmail.com>
Mon, 29 Dec 2008 22:31:10 +0000 (22:31 +0000)
committerMatthew Wild <mwild1@gmail.com>
Mon, 29 Dec 2008 22:31:10 +0000 (22:31 +0000)
prosody

diff --git a/prosody b/prosody
index 2cff8ca4a421807512099391b2583e84030f1cb4..b4a18c678e095da49a6e2583ddb5a8d282ae2f71 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -140,7 +140,7 @@ local function do_ports(option, listener, default, conntype)
        end
 end
 
-do_ports("c2s_ports", "xmppclient", {5222}, "tls");
+do_ports("c2s_ports", "xmppclient", {5222}, (global_ssl_ctx and "tls") or "tcp");
 do_ports("s2s_ports", "xmppserver", {5269}, "tcp");
 do_ports("legacy_ssl_ports", "xmppclient", {}, "ssl");