main.uc: reintroduce set reload restriction
authorJo-Philipp Wich <jo@mein.io>
Fri, 14 Oct 2022 15:45:08 +0000 (17:45 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 14 Oct 2022 15:45:08 +0000 (17:45 +0200)
commitc7201a3d24eb2a9ae122a0d6e4bb41146edebf10
tree5ffeee51a78c789134a9c795a72028c223cf85b3
parent756f1e21ed77f2c0b3fc2c8128c808704f2cf61b
main.uc: reintroduce set reload restriction

Only reload sets which either declare a file to load or a set of static
entries in order to avoid clearing externally managed sets that might
take a long time to repopulate.

Also guard the entry file loading in order to avoid a stray warning
message.

Ref: https://forum.openwrt.org/t/x/138579/57
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/main.uc