Changeset

5792:bb4335c8f500

mod_restrict_xmpp: Allow all XEP-0199 pings to self No permission to send a ping without a 'to' attribute?
author Kim Alvefur <zash@zash.se>
date Mon, 04 Dec 2023 00:23:19 +0100
parents 5791:62654f523c6a
children 5793:990c6adc4407
files mod_restrict_xmpp/mod_restrict_xmpp.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_restrict_xmpp/mod_restrict_xmpp.lua	Mon Dec 04 00:08:27 2023 +0100
+++ b/mod_restrict_xmpp/mod_restrict_xmpp.lua	Mon Dec 04 00:23:19 2023 +0100
@@ -78,6 +78,7 @@
 
 	local payload = stanza.tags[1];
 	local ns = payload and payload.attr.xmlns;
+	if ns == "urn:xmpp:ping" then return end
 	local proto = iq_namespaces[ns];
 	if proto == "pep" then
 		local pubsub = payload:get_child("pubsub", "http://jabber.org/protocol/pubsub");