aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-29 14:31:51 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-29 14:31:51 +0100
commitede4cc6e86b9937c0739c42e90fe578865618d9a (patch)
treec53ef7a6c8a16ecbb5f6b7020761aca01c004b60 /net
parentd855a4785d6378c0cf5ba159394a96342d30d60c (diff)
downloadprosody-ede4cc6e86b9937c0739c42e90fe578865618d9a.tar.gz
prosody-ede4cc6e86b9937c0739c42e90fe578865618d9a.zip
xmppclient_listener: A connection is also secure when it uses legacy SSL
Diffstat (limited to 'net')
-rw-r--r--net/xmppclient_listener.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua
index dbb87b91..ca892c17 100644
--- a/net/xmppclient_listener.lua
+++ b/net/xmppclient_listener.lua
@@ -115,6 +115,10 @@ function xmppclient.listener(conn, data)
session.log("info", "Client connected");
+ if conn.ssl() then
+ session.secure = true;
+ end
+
session.reset_stream = session_reset_stream;
session.close = session_close;