diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-05-11 01:45:36 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-05-11 01:45:36 +0100 |
commit | 205fa926e72483b3d981d96915df59aa9b800b9f (patch) | |
tree | 3720c0200aa7c43dbfcd804390a2a59fbb295f1f /plugins/mod_dialback.lua | |
parent | 38a7865229c7049bcbfa3e7f78016bf5e988ca28 (diff) | |
parent | 839f988ea4545677a5927f933927b3bac616f8ad (diff) | |
download | prosody-205fa926e72483b3d981d96915df59aa9b800b9f.tar.gz prosody-205fa926e72483b3d981d96915df59aa9b800b9f.zip |
Merge with backout
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r-- | plugins/mod_dialback.lua | 6 |
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 |