aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-23 01:57:09 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-23 01:57:09 +0100
commit7dfac00cffc08f62ca827c5fae1f04cb3920d625 (patch)
tree00c955a35e5078ab530aff221e9af5a2a6938e4c
parent194696adb0e98713037fd84c52da9e8d9238527d (diff)
downloadprosody-7dfac00cffc08f62ca827c5fae1f04cb3920d625.tar.gz
prosody-7dfac00cffc08f62ca827c5fae1f04cb3920d625.zip
net.server: Set sslctx to false when SSL wrapping fails, to avoid attempting to wrap clients with a broken context
-rw-r--r--net/server.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua
index e31333e2..b0e0eb78 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -189,6 +189,7 @@ wrapserver = function( listeners, socket, ip, serverport, pattern, sslctx, maxco
end
end
if not ssl then
+ sslctx = false;
out_put("server.lua: ", "ssl not enabled on ", serverport);
end