]> git.ipfire.org Git - ipfire-2.x.git/commit
rules.pl: Autodetect ipset db file to restore.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 2 Mar 2022 19:43:05 +0000 (20:43 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 5 Mar 2022 14:32:44 +0000 (14:32 +0000)
commit58418009693fc43c895c210d11e3ad1b18c3222c
treea627b20e51ca5b8652e1a6391e13574cdd104039
parent7b529f5417254c68b6bd33732f30578182893d34
rules.pl: Autodetect ipset db file to restore.

This commit allows the ipset_restore() function to auto-detect
which set file needs to be restored.

Currently it is limitated to country codes only, because we currently
does not support anything else.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/firewall/rules.pl