From c6e12435b352fe38d3b33dc8a124d83b3e3669ad Mon Sep 17 00:00:00 2001 From: zipiju Date: Thu, 10 Apr 2025 21:34:39 +0200 Subject: [PATCH] Allow comma separated SUBNET_FILTER values Allow to specify multiple allowed subnets in SUBNET_FILTER by separating them with comma. This will accept single subnet, such as SUBNET_FILTER=spark but also multiple subnets, such as SUBNET_FILTER=spark,arweave,walrus. --- lib/zinnia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zinnia.js b/lib/zinnia.js index 93d8576d..9cac60cb 100644 --- a/lib/zinnia.js +++ b/lib/zinnia.js @@ -85,7 +85,7 @@ const maybeReportErrorToSentry = (/** @type {unknown} */ err) => { } const matchesSubnetFilter = (subnet) => - SUBNET_FILTER === '' || subnet === SUBNET_FILTER + SUBNET_FILTER === '' || SUBNET_FILTER.split(',').includes(subnet); const capitalize = (str) => `${str.charAt(0).toUpperCase()}${str.slice(1)}`