firewall-lib.pl: Remove prefix when dealing with ipset sets.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-03-02 20:43:06 +01:00
committed by Peter Müller
parent 5841800969
commit 96e2e870aa

View File

@@ -466,7 +466,7 @@ sub get_address
# Get external interface.
my $external_interface = &get_external_interface();
push(@ret, ["-m set --match-set CC_$value src", "$external_interface"]);
push(@ret, ["-m set --match-set $value src", "$external_interface"]);
}
# Handle rule options with a location as target.
@@ -476,7 +476,7 @@ sub get_address
# Get external interface.
my $external_interface = &get_external_interface();
push(@ret, ["-m set --match-set CC_$value dst", "$external_interface"]);
push(@ret, ["-m set --match-set $value dst", "$external_interface"]);
}
# If nothing was selected, we assume "any".