]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
rules.pl: Use ipset_exists() function to avoid loading the same set
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 16:46:19 +0000 (18:46 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 16:46:19 +0000 (18:46 +0200)
commit6dfa1854fb9ce74c0449b90f8475ac0fa9d87e2e
tree0e8fb70a00a17ec3cc098f6d5e83282f52294908
parent65f4a6ac58ca1fae1fb89c6472df0fdd8a079acb
rules.pl: Use ipset_exists() function to avoid loading the same set
multiple times.

Asking the kernel if a set is allready loaded/know is much smarter.

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