projects
/
project
/
firewall4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a0d38f
)
fw4.uc: don't fail on unknown options
author
Stijn Tintel
<stijn@linux-ipv6.be>
Thu, 6 Jan 2022 09:52:02 +0000
(11:52 +0200)
committer
Stijn 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
patch
|
blob
|
history
diff --git
a/root/usr/share/ucode/fw4.uc
b/root/usr/share/ucode/fw4.uc
index 7ada93e6c82cac3cbef093552e1b24ea68d250a6..cfbd632cdd8b32753c4a5060593e17f2d2f0484b 100644
(file)
--- 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;
}
}