net/xmppclient_listener.lua

changeset 1684
645e18990211
parent 1618
ba2a92230b77
child 1685
f5e24a63d233
equal deleted inserted replaced
1683:a73b0557d87a 1684:645e18990211
114 session = sm_new_session(conn); 114 session = sm_new_session(conn);
115 sessions[conn] = session; 115 sessions[conn] = session;
116 116
117 -- Logging functions -- 117 -- Logging functions --
118 118
119 local conn_name = "c2s"..tostring(conn):match("[a-f0-9]+$");
120 session.log = logger.init(conn_name);
121
122 session.log("info", "Client connected"); 119 session.log("info", "Client connected");
123 120
124 -- Client is using legacy SSL (otherwise mod_tls sets this flag) 121 -- Client is using legacy SSL (otherwise mod_tls sets this flag)
125 if conn.ssl() then 122 if conn.ssl() then
126 session.secure = true; 123 session.secure = true;

mercurial