Changeset

1215:d3534badd748

xmppclient_listener: A connection is also secure when it uses legacy SSL
author Matthew Wild <mwild1@gmail.com>
date Fri, 29 May 2009 14:31:51 +0100
parents 1214:27d4cfb8fb7a
children 1216:fd8ce71bc72b
files net/xmppclient_listener.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppclient_listener.lua	Fri May 29 14:30:40 2009 +0100
+++ b/net/xmppclient_listener.lua	Fri May 29 14:31:51 2009 +0100
@@ -115,6 +115,10 @@
 		
 		session.log("info", "Client connected");
 		
+		if conn.ssl() then
+			session.secure = true;
+		end
+		
 		session.reset_stream = session_reset_stream;
 		session.close = session_close;