From: Stijn Tintel Date: Thu, 6 Jan 2022 09:52:02 +0000 (+0200) Subject: fw4.uc: don't fail on unknown options X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5e7ad3b44041d044b8221fc38588aca7d6ef066f;p=project%2Ffirewall4.git 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 Reviewed-by: Jo-Philipp Wich --- 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; } }