# HG changeset patch # User Kim Alvefur # Date 1519497490 -3600 # Node ID d958558e00585869e333614483ff2bf82d816584 # Parent bf9fc41bf7ada04c8bbd9c506c739e0e8bd2c1a0 mod_s2s_blacklist: Don't send error replies for error stanzas diff -r bf9fc41bf7ad -r d958558e0058 mod_s2s_blacklist/mod_s2s_blacklist.lua --- a/mod_s2s_blacklist/mod_s2s_blacklist.lua Fri Feb 23 22:00:18 2018 +0100 +++ b/mod_s2s_blacklist/mod_s2s_blacklist.lua Sat Feb 24 19:38:10 2018 +0100 @@ -4,7 +4,9 @@ module:hook("route/remote", function (event) if blacklist:contains(event.to_host) then - module:send(st.error_reply(event.stanza, "cancel", "not-allowed", "Communication with this domain is restricted")); + if event.stanza.attr.type ~= "error" then + module:send(st.error_reply(event.stanza, "cancel", "not-allowed", "Communication with this domain is restricted")); + end return true; end end, 100);