aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-04 17:43:48 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-04 17:43:48 +0500
commit6f9e33247cdaf5bace1a44f895d1e533c3f050f3 (patch)
tree58133ec54e26dc31bed41f30ce2747cd7837aad4
parent0ee447e39f7d8f52c3b6bf13f9023819c863c65a (diff)
downloadprosody-6f9e33247cdaf5bace1a44f895d1e533c3f050f3.tar.gz
prosody-6f9e33247cdaf5bace1a44f895d1e533c3f050f3.zip
Commented a buggy check
-rw-r--r--core/stanza_router.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 9cb6ff98..01b6128a 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -61,12 +61,14 @@ function core_process_stanza(origin, stanza)
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