diff options
| author | Jo-Philipp Wich | 2021-03-31 19:05:56 +0000 |
|---|---|---|
| committer | Jo-Philipp Wich | 2021-03-31 19:20:48 +0000 |
| commit | 25b2c7d019aad51bf9073736b3cba444a674e8bd (patch) | |
| tree | 161fdf9b182dce3573ed493fea59db1efb6b39ef | |
| parent | 694d428d0513bf9d7d09c7b21d4e43fedac7ddbe (diff) | |
| download | firewall4-25b2c7d019aad51bf9073736b3cba444a674e8bd.tar.gz | |
fw4.uc: fix parsing boolean "0" values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
| -rw-r--r-- | root/usr/share/ucode/fw4.uc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc index ebab4f7..c8396fa 100644 --- a/root/usr/share/ucode/fw4.uc +++ b/root/usr/share/ucode/fw4.uc @@ -1316,7 +1316,7 @@ return { parse_opt: function(s, opt, fn, defval, flags) { let val = s[opt]; - if (val == null) { + if (val === null) { if (flags & REQUIRED) { this.warn_section(s, "option '" + opt + "' is mandatory but not set"); return NaN; |