Diff

core/stanza_router.lua @ 631:6957fe7b0313

Bounce stanza errors on failed s2s
author Waqas Hussain <waqas20@gmail.com>
date Fri, 19 Dec 2008 01:57:13 +0500
parent 621:cd2cab5400fc
child 640:068130563311
line wrap: on
line diff
--- a/core/stanza_router.lua	Tue Dec 16 03:46:17 2008 +0500
+++ b/core/stanza_router.lua	Fri Dec 19 01:57:13 2008 +0500
@@ -86,7 +86,7 @@
 
 	-- FIXME do stanzas not of jabber:client get handled by components?
 	if (origin.type == "s2sin" or origin.type == "c2s") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then			
-		if origin.type == "s2sin" then
+		if origin.type == "s2sin" and not origin.dummy then
 			local host_status = origin.hosts[from_host];
 			if not host_status or not host_status.authed then -- remote server trying to impersonate some other server?
 				log("warn", "Received a stanza claiming to be from %s, over a conn authed for %s!", from_host, origin.from_host);