aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-11 01:45:36 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-11 01:45:36 +0100
commit205fa926e72483b3d981d96915df59aa9b800b9f (patch)
tree3720c0200aa7c43dbfcd804390a2a59fbb295f1f /plugins
parent38a7865229c7049bcbfa3e7f78016bf5e988ca28 (diff)
parent839f988ea4545677a5927f933927b3bac616f8ad (diff)
downloadprosody-205fa926e72483b3d981d96915df59aa9b800b9f.tar.gz
prosody-205fa926e72483b3d981d96915df59aa9b800b9f.zip
Merge with backout
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_dialback.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index 8c683d8a..4b19f2d9 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -79,7 +79,11 @@ module:hook("stanza/jabber:server:dialback:result", function(event)
local compat_check;
if not origin.from_host then
-- Just used for friendlier logging
- origin.from_host = attr.from;
+ origin.from_host = nameprep(attr.from);
+ if not origin.from_host then
+ origin.log("debug", "We need to know where to connect but remote server blindly refuses to tell us and to comply to specs, closing connection.");
+ origin:close("invalid-from");
+ end
end
if not origin.to_host then
-- Just used for friendlier logging