From 497e0b3124c7cbdbbceb5f8bf136bfaa46eac212 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 16 Apr 2023 16:22:38 +0200 Subject: [PATCH] rules.pl: Register load_customgrp() function for custom groups Signed-off-by: Stefan Schantl --- config/firewall/rules.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl index 475effeff5..ce58e28bcf 100644 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -116,6 +116,9 @@ my @locations = &Location::Functions::get_locations(); # Get all supported blocklists. my @blocklists = &IPblocklist::get_blocklists(); +# Get all configured custom groups. +my @customgroups = &fwlib::get_custom_groups(); + # Name or the RED interface. my $RED_DEV = &General::get_red_interface(); @@ -132,6 +135,7 @@ my $POLICY_OUTPUT_ACTION = $fwoptions{"FWPOLICY1"}; # Register set loaders. ®ister_set_loader("Location::Functions::load_location", @locations); ®ister_set_loader("IPblocklist::Functions::load_blocklist", @blocklists); +®ister_set_loader("load_customgrp", @customgroups); # MAIN &main(); -- 2.39.5