Software /
code /
prosody
Changeset
6426:e5945fb5b71f
mod_s2s: Close s2s connections that can not proceed due to mod_dialback not being present
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Sep 2014 19:41:10 +0200 |
parents | 6425:436a670a0189 |
children | 6427:7653bbd5247e |
files | plugins/mod_s2s/mod_s2s.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Tue Sep 23 19:29:14 2014 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Tue Sep 23 19:41:10 2014 +0200 @@ -154,6 +154,10 @@ -- so the stream is ready for stanzas. RFC 6120 Section 4.3 mark_connected(session); return true; + elseif not session.dialback_verifying then + session.log("warn", "No SASL EXTERNAL offer and Dialback doesn't seem to be enabled, giving up"); + session:close(); + return false; end end, -1); end