Diff

plugins/mod_tls.lua @ 5370:7838acadb0fa

mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals
author Kim Alvefur <zash@zash.se>
date Sat, 23 Mar 2013 01:27:16 +0100
parent 4475:7341cc5c8da9
child 5378:ec3accda44d3
line wrap: on
line diff
--- a/plugins/mod_tls.lua	Fri Mar 22 15:16:22 2013 +0000
+++ b/plugins/mod_tls.lua	Sat Mar 23 01:27:16 2013 +0100
@@ -25,6 +25,7 @@
 
 local global_ssl_ctx = prosody.global_ssl_ctx;
 
+local hosts = prosody.hosts;
 local host = hosts[module.host];
 
 local function can_do_tls(session)