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=d2f881425dad7e7388bb6f5b028aa129e69268c4;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 a55e551c7..d417a5ab4 100644 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -117,6 +117,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(); @@ -133,6 +136,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();