]> git.ipfire.org Git - ipfire-2.x.git/commit
rules.pl: Fix creating rules for location based groups.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 23 Mar 2022 17:08:52 +0000 (18:08 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Wed, 23 Mar 2022 17:12:37 +0000 (17:12 +0000)
commitabf148cebd8a8ed30c1a4f2807bb0608eec5b026
tree63e37c6eeddb69912424e888830c159bd7df1c9c
parent77e3829dc1ba7d98516c552e5c1b7c87677dee90
rules.pl: Fix creating rules for location based groups.

The former used hash value only contains the country code when
a rule for a single country should be created.

In case a location group is used the hash value refers to the group name,
which does not work here.

The required country code is part of the processed string and can be omitted
from here. This works well for single codes and location groups, because those
are processed in a loop.

Fixes #12809.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
config/firewall/rules.pl