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.
--- 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