]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
rules.pl: Autodetect ipset db file to restore. central-ipset
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 1 Mar 2022 14:04:58 +0000 (15:04 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 1 Mar 2022 14:04:58 +0000 (15:04 +0100)
commitf9fc7f89a3884b67dbc0874b4108a5981a16560f
treeca3815efb43e908f805256260814eb8763d4d30d
parent3d04b987a7410b622f97d9e9eb8b2a9ff682e46e
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