]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
rules.pl: Register load_customgrp() function for custom groups
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 16 Apr 2023 14:22:38 +0000 (16:22 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 16 Apr 2023 14:22:38 +0000 (16:22 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/firewall/rules.pl

index 475effeff51908c31431ed19f7162e4aaa72e3d2..ce58e28bcfacee7332d4a89916fc2301843c1eb7 100644 (file)
@@ -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.
 &register_set_loader("Location::Functions::load_location", @locations);
 &register_set_loader("IPblocklist::Functions::load_blocklist", @blocklists);
+&register_set_loader("load_customgrp", @customgroups);
 
 # MAIN
 &main();