diff mod_proxy65/mod_proxy65.lua @ 73:adb9d1b879c2

mod_proxy65: changed the listener name to be unique on a per component basis and display a good error description when connlistener register fails
author Thilo Cestonaro <thilo@cestona.ro>
date Sat, 31 Oct 2009 20:53:52 +0100
parents 2bf6c7c590a1
children d70813f7d90a
line wrap: on
line diff
--- a/mod_proxy65/mod_proxy65.lua	Sat Oct 31 20:33:42 2009 +0100
+++ b/mod_proxy65/mod_proxy65.lua	Sat Oct 31 20:53:52 2009 +0100
@@ -8,7 +8,6 @@
 	error("proxy65 should be loaded as a component, please see http://prosody.im/doc/components", 0);
 end
 
-
 local jid_split = require "util.jid".split;
 local st = require "util.stanza";
 local componentmanager = require "core.componentmanager";
@@ -191,8 +190,9 @@
 	return;
 end
 
-if not connlisteners.register('proxy65', connlistener) then
+if not connlisteners.register(module.host .. ':proxy65', connlistener) then
 	error("mod_proxy65: Could not establish a connection listener. Check your configuration please.");
+	error(" one possible cause for this would be that two proxy65 components share the same port.");
 end
 
 connlisteners.start('proxy65');