aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-31 16:22:52 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-31 16:22:52 +0000
commitc8aaba9697978b1c6a5362dd05236bbf6e94497a (patch)
tree2034a53e29d97a70d57b50dd6a6c37426991f5dd
parent3a315a20ec1a3b8e25cf96084d3898bc5077c900 (diff)
downloadprosody-c8aaba9697978b1c6a5362dd05236bbf6e94497a.tar.gz
prosody-c8aaba9697978b1c6a5362dd05236bbf6e94497a.zip
prosody: Only set the ssl_ctx for 'ssl' connections
-rwxr-xr-xprosody2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosody b/prosody
index 542787df..81152235 100755
--- a/prosody
+++ b/prosody
@@ -206,7 +206,7 @@ function init_global_state()
log("error", "Non-numeric "..ports_option..": "..tostring(port));
else
cl.start(listener, {
- ssl = conntype ~= "tcp" and global_ssl_ctx,
+ ssl = conntype == "ssl" and global_ssl_ctx,
port = port,
interface = (option and config.get("*", "core", option.."_interface"))
or cl.get(listener).default_interface