comparison mod_proxy65/mod_proxy65.lua @ 74:d70813f7d90a

mod_proxy65: make it work again
author Thilo Cestonaro <thilo@cestona.ro>
date Sat, 31 Oct 2009 21:00:02 +0100
parents adb9d1b879c2
children 85b8622ccffd
comparison
equal deleted inserted replaced
73:adb9d1b879c2 74:d70813f7d90a
134 return reply; 134 return reply;
135 end 135 end
136 136
137 module.unload = function() 137 module.unload = function()
138 componentmanager.deregister_component(host); 138 componentmanager.deregister_component(host);
139 connlisteners.deregister("proxy65"); 139 connlisteners.deregister(module.host .. ':proxy65');
140 end 140 end
141 141
142 local function set_activation(stanza) 142 local function set_activation(stanza)
143 local from, to, sid, reply = nil; 143 local from, to, sid, reply = nil;
144 from = stanza.attr.from; 144 from = stanza.attr.from;
193 if not connlisteners.register(module.host .. ':proxy65', connlistener) then 193 if not connlisteners.register(module.host .. ':proxy65', connlistener) then
194 error("mod_proxy65: Could not establish a connection listener. Check your configuration please."); 194 error("mod_proxy65: Could not establish a connection listener. Check your configuration please.");
195 error(" one possible cause for this would be that two proxy65 components share the same port."); 195 error(" one possible cause for this would be that two proxy65 components share the same port.");
196 end 196 end
197 197
198 connlisteners.start('proxy65'); 198 connlisteners.start(module.host .. ':proxy65');
199 component = componentmanager.register_component(host, handle_to_domain); 199 component = componentmanager.register_component(host, handle_to_domain);