Always reload sets, regardless of whether they contain entries or not.
Also don't require a set to define a `loadfile` option in order to get
reloaded by `fw4 reload-sets`.
Ref: https://forum.openwrt.org/t/x/138579/53
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
sets = fw4.check_set_types();
for (let set in state.ipsets) {
- if (!set.loadfile || !length(set.entries))
- continue;
-
if (!exists(sets, set.name)) {
warn(`Named set '${set.name}' does not exist - do you need to restart the firewall?\n`);
continue;