equal
deleted
inserted
replaced
75 |
75 |
76 module:hook("stanza/jabber:server:dialback:result", function(event) |
76 module:hook("stanza/jabber:server:dialback:result", function(event) |
77 local origin, stanza = event.origin, event.stanza; |
77 local origin, stanza = event.origin, event.stanza; |
78 |
78 |
79 if origin.type == "s2sin_unauthed" or origin.type == "s2sin" then |
79 if origin.type == "s2sin_unauthed" or origin.type == "s2sin" then |
80 -- he wants to be identified through dialback |
80 -- They want to be identified through dialback |
81 -- We need to check the key with the Authoritative server |
81 -- We need to check the key with the Authoritative server |
82 local attr = stanza.attr; |
82 local attr = stanza.attr; |
83 if not attr.to or not attr.from then |
83 if not attr.to or not attr.from then |
84 origin.log("debug", "Missing Dialback addressing (from=%q, to=%q)", attr.from, attr.to); |
84 origin.log("debug", "Missing Dialback addressing (from=%q, to=%q)", attr.from, attr.to); |
85 origin:close("improper-addressing"); |
85 origin:close("improper-addressing"); |