Changeset

4628:15c4eabdcea0

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.
author Kim Alvefur <zash@zash.se>
date Wed, 21 Jul 2021 15:52:12 +0200
parents 4627:adda872fa9e1
children 4629:0e60ce83205c
files mod_s2s_keepalive/mod_s2s_keepalive.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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