Diff

mod_restrict_xmpp/mod_restrict_xmpp.lua @ 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
parent 5777:1d0a0d3f9593
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");