Changeset

213:181f5cc6215b

Commented a buggy check
author Waqas Hussain <waqas20@gmail.com>
date Tue, 04 Nov 2008 17:43:48 +0500
parents 212:9d6da9ed9063
children 215:ec90acc13ba3
files core/stanza_router.lua
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/stanza_router.lua	Tue Nov 04 17:25:12 2008 +0500
+++ b/core/stanza_router.lua	Tue Nov 04 17:43:48 2008 +0500
@@ -61,12 +61,14 @@
 
 	if origin.type == "s2sin" then
 		if origin.host ~= from_host then -- remote server trying to impersonate some other server?
+			log("warn", "origin.host ~= from_host");
 			return; -- FIXME what should we do here? does this work with subdomains?
 		end
 	end
-	if to and not(hosts[to]) and not(hosts[to_bare]) and (not(hosts[host]) or hosts[host].type ~= "local") then -- not for us?
+	--[[if to and not(hosts[to]) and not(hosts[to_bare]) and (hosts[host] and hosts[host].type ~= "local") then -- not for us?
+		log("warn", "stanza recieved for a non-local server");
 		return; -- FIXME what should we do here?
-	end
+	end]] -- FIXME
 
 	-- FIXME do stanzas not of jabber:client get handled by components?
 	if not to then