Software /
code /
prosody
Comparison
plugins/mod_dialback.lua @ 4843:d91dda67647a
Merge with backout
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 11 May 2012 01:45:36 +0100 |
parent | 4841:ce793cea9f10 |
parent | 4842:88101f652174 |
child | 4846:3bc3498df0a0 |
comparison
equal
deleted
inserted
replaced
4841:ce793cea9f10 | 4843:d91dda67647a |
---|---|
77 dialback_requests[attr.from.."/"..origin.streamid] = origin; | 77 dialback_requests[attr.from.."/"..origin.streamid] = origin; |
78 | 78 |
79 local compat_check; | 79 local compat_check; |
80 if not origin.from_host then | 80 if not origin.from_host then |
81 -- Just used for friendlier logging | 81 -- Just used for friendlier logging |
82 origin.from_host = attr.from; | 82 origin.from_host = nameprep(attr.from); |
83 if not origin.from_host then | |
84 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."); | |
85 origin:close("invalid-from"); | |
86 end | |
83 end | 87 end |
84 if not origin.to_host then | 88 if not origin.to_host then |
85 -- Just used for friendlier logging | 89 -- Just used for friendlier logging |
86 origin.to_host = nameprep(attr.to); | 90 origin.to_host = nameprep(attr.to); |
87 -- COMPAT: Fix server's chopness by not including to | 91 -- COMPAT: Fix server's chopness by not including to |