# HG changeset patch # User Kim Alvefur # Date 1570389293 -7200 # Node ID 1bb1e16f24b009428785acdc60e59bbcb8e54537 # Parent b03065cd033a85b61ea7987e8d79cb0d8222968a mod_s2s: Close with a stream error in case neither SASL or Dialback are available This both tells the remote server and users who sent any queued stanzas why it failed. diff -r b03065cd033a -r 1bb1e16f24b0 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Sun Oct 06 19:35:35 2019 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Sun Oct 06 21:14:53 2019 +0200 @@ -184,7 +184,10 @@ 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(); + session:close({ + condition = "unsupported-feature", + text = "No viable authentication method offered", + }); return false; end end, -1);