From: Stefan Schantl Date: Sun, 16 Apr 2023 14:22:38 +0000 (+0200) Subject: rules.pl: Register load_customgrp() function for custom groups X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=497e0b3124c7cbdbbceb5f8bf136bfaa46eac212;p=people%2Fstevee%2Fipfire-2.x.git rules.pl: Register load_customgrp() function for custom groups Signed-off-by: Stefan Schantl --- 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();