equal
deleted
inserted
replaced
151 -- Warn the original connection that is was not verified successfully |
151 -- Warn the original connection that is was not verified successfully |
152 log("warn", "authoritative server for %s denied the key", attr.from or "(unknown)"); |
152 log("warn", "authoritative server for %s denied the key", attr.from or "(unknown)"); |
153 valid = "invalid"; |
153 valid = "invalid"; |
154 end |
154 end |
155 if dialback_verifying.destroyed then |
155 if dialback_verifying.destroyed then |
156 log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the db result", |
156 log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the dialback result", |
157 tostring(dialback_verifying):match("%w+$")); |
157 tostring(dialback_verifying):match("%w+$")); |
158 else |
158 else |
159 dialback_verifying.sends2s( |
159 dialback_verifying.sends2s( |
160 st.stanza("db:result", { from = attr.to, to = attr.from, id = attr.id, type = valid }) |
160 st.stanza("db:result", { from = attr.to, to = attr.from, id = attr.id, type = valid }) |
161 :text(dialback_verifying.hosts[attr.from].dialback_key)); |
161 :text(dialback_verifying.hosts[attr.from].dialback_key)); |