# HG changeset patch # User Matthew Wild # Date 1264954972 0 # Node ID e12acef85166313d1f6bffcd9440b5f3f8a44737 # Parent b2cb0935f15828cb3e773e61d9e84ed99a282190 prosody: Only set the ssl_ctx for 'ssl' connections diff -r b2cb0935f158 -r e12acef85166 prosody --- a/prosody Sun Jan 31 15:44:55 2010 +0000 +++ b/prosody Sun Jan 31 16:22:52 2010 +0000 @@ -206,7 +206,7 @@ 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