summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStijn Tintel2022-01-06 09:52:02 +0000
committerStijn Tintel2022-01-06 12:52:02 +0000
commit5e7ad3b44041d044b8221fc38588aca7d6ef066f (patch)
tree7ca21d2b4c2943b8971908658d26d6be5cf69b57
parent7a0d38f2b8975497714a73aed6415c0dbb5a1cb8 (diff)
downloadfirewall4-5e7ad3b44041d044b8221fc38588aca7d6ef066f.tar.gz
fw4.uc: don't fail on unknown options
Warn the user when a section contains invalid options, but do not stop processing the section, like firewall3. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--root/usr/share/ucode/fw4.uc1
1 files changed, 0 insertions, 1 deletions
diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc
index 7ada93e..cfbd632 100644
--- a/root/usr/share/ucode/fw4.uc
+++ b/root/usr/share/ucode/fw4.uc
@@ -635,7 +635,6 @@ return {
for (let opt in s) {
if (index(opt, '.') != 0 && opt != 'type' && !exists(spec, opt)) {
this.warn_section(s, "specifies unknown option '" + opt + "'");
- return false;
}
}