Changeset

5232:0f943619e01a

mod_firewall: Fix parsing of pubsubitemid list specification
author Matthew Wild <mwild1@gmail.com>
date Sat, 11 Mar 2023 16:40:09 +0000
parents 5231:bef543068077
children 5233:7eec2bc67c26
files mod_firewall/definitions.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/definitions.lib.lua	Fri Mar 10 12:03:23 2023 +0100
+++ b/mod_firewall/definitions.lib.lua	Sat Mar 11 16:40:09 2023 +0000
@@ -197,7 +197,7 @@
 	-- TODO Invent some custom schema for this? Needed for just a set of strings?
 	pubsubitemid = {
 		init = function(self, pubsub_spec, opts)
-			local service_addr, node = pubsub_spec:match("^([^/]*)/(.*)");
+			local service_addr, node = pubsub_spec:match("^pubsubitemid:([^/]*)/(.*)");
 			module:depends("pubsub_subscription");
 			module:add_item("pubsub-subscription", {
 					service = service_addr;