fw4.uc: don't fail on unknown options
authorStijn Tintel <stijn@linux-ipv6.be>
Thu, 6 Jan 2022 09:52:02 +0000 (11:52 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Thu, 6 Jan 2022 12:52:02 +0000 (14:52 +0200)
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>
root/usr/share/ucode/fw4.uc

index 7ada93e6c82cac3cbef093552e1b24ea68d250a6..cfbd632cdd8b32753c4a5060593e17f2d2f0484b 100644 (file)
@@ -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;
                        }
                }