comparison mod_component_roundrobin/mod_component_roundrobin.lua @ 1253:19cf607111fb

mod_component_roundrobin: Mark authenticated sessions as such
author Kim Alvefur <zash@zash.se>
date Thu, 19 Dec 2013 12:59:32 +0100
parents 08e50d742392
children b0136968bef1
comparison
equal deleted inserted replaced
1252:08e50d742392 1253:19cf607111fb
84 84
85 -- Add session to sessions table 85 -- Add session to sessions table
86 sessions[session] = true; 86 sessions[session] = true;
87 session.on_destroy = on_destroy; 87 session.on_destroy = on_destroy;
88 session.component_validate_from = module:get_option_boolean("validate_from_addresses", true); 88 session.component_validate_from = module:get_option_boolean("validate_from_addresses", true);
89 session.type = "component";
89 log("info", "Component successfully authenticated: %s", session.host); 90 log("info", "Component successfully authenticated: %s", session.host);
90 session.send(st.stanza("handshake")); 91 session.send(st.stanza("handshake"));
91 92
92 return true; 93 return true;
93 end 94 end