]> git.ipfire.org Git - ipfire-2.x.git/commit
rules.pl: Fix creating rules for location based groups. core165 v2.27-core165
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 23 Mar 2022 17:08:52 +0000 (18:08 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Mar 2022 17:15:18 +0000 (17:15 +0000)
commitc55f5c8eaaa5b91a63765b1ac5fec4da8ce028fb
tree4912993f0d0731892dcfeed5e1399266ec4e05b2
parent26926c4d12793331cdf51d54a44ea3dfe4780dbf
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/firewall/rules.pl