mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 07:23:03 +02:00
firewall-lib.pl: Remove prefix when dealing with ipset sets.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
5841800969
commit
96e2e870aa
@@ -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".
|
||||
|
||||
Reference in New Issue
Block a user