mod_restrict_xmpp: Allow all XEP-0199 pings to self
authorKim Alvefur <zash@zash.se>
Mon, 04 Dec 2023 00:23:19 +0100
changeset 5773 bb4335c8f500
parent 5772 62654f523c6a
child 5774 990c6adc4407
mod_restrict_xmpp: Allow all XEP-0199 pings to self No permission to send a ping without a 'to' attribute?
mod_restrict_xmpp/mod_restrict_xmpp.lua
--- 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");