# HG changeset patch # User Kim Alvefur # Date 1626875532 -7200 # Node ID 15c4eabdcea03f4d429790f01f8180b32ec16f24 # Parent adda872fa9e120fa76698b1a0367ea675933d498 mod_s2s_keepalive: Fix identification of replies (error-replies included) Typo? This condition is supposed to filter out get and set (and anything else), not errors, which can still mean that there's connectivity, just no handling of XEP-0199. diff -r adda872fa9e1 -r 15c4eabdcea0 mod_s2s_keepalive/mod_s2s_keepalive.lua --- a/mod_s2s_keepalive/mod_s2s_keepalive.lua Sun Jul 18 00:21:35 2021 +0200 +++ b/mod_s2s_keepalive/mod_s2s_keepalive.lua Wed Jul 21 15:52:12 2021 +0200 @@ -64,7 +64,7 @@ module:hook("iq/host", function (event) local stanza = event.stanza; - if stanza.attr.type ~= "result" and stanza.attr.type == "error" then + if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then return -- not a reply iq stanza end if not (stanza.attr.id and stanza.attr.id:sub(1, #"keepalive:") == "keepalive:") then