Comparison

plugins/mod_c2s.lua @ 10017:994cccebb597

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 26 May 2019 19:41:58 +0200
parent 9910:7a703af90c9c
parent 10013:62d8689beafb
child 10111:0f335815244f
comparison
equal deleted inserted replaced
10010:34bfefb39937 10017:994cccebb597
243 end 243 end
244 244
245 --- Port listener 245 --- Port listener
246 function listener.onconnect(conn) 246 function listener.onconnect(conn)
247 local session = sm_new_session(conn); 247 local session = sm_new_session(conn);
248 sessions[conn] = session;
249 248
250 session.log("info", "Client connected"); 249 session.log("info", "Client connected");
251 250
252 -- Client is using legacy SSL (otherwise mod_tls sets this flag) 251 -- Client is using legacy SSL (otherwise mod_tls sets this flag)
253 if conn:ssl() then 252 if conn:ssl() then
304 end 303 end
305 end); 304 end);
306 end 305 end
307 306
308 session.dispatch_stanza = stream_callbacks.handlestanza; 307 session.dispatch_stanza = stream_callbacks.handlestanza;
308
309 sessions[conn] = session;
309 end 310 end
310 311
311 function listener.onincoming(conn, data) 312 function listener.onincoming(conn, data)
312 local session = sessions[conn]; 313 local session = sessions[conn];
313 if session then 314 if session then