firewall: options: fix parsing of boolean attributes
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 30 Sep 2020 21:19:02 +0000 (23:19 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 16 Oct 2020 19:37:22 +0000 (21:37 +0200)
commitdda5e3db19009742a19727132d8e98ae9ec21fd3
treed269bf30b93d79feba5537aee3ba1aa2fef441e4
parent7dd822983b8728772e433c7718739b741c3d6de0
firewall: options: fix parsing of boolean attributes

Boolean attributes were parsed the same way as string attributes,
so a value of { "bool_attr": "true" } would be parsed correctly, but
{ "bool_attr": true } (without quotes) was parsed as false.

Fixes FS#3284

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 7f676b5ed6a2bcd6786a0fcb6a6db3ddfeedf795)
package/network/config/firewall/Makefile
package/network/config/firewall/patches/0002-options-fix-parsing-of-boolean-attributes.patch [new file with mode: 0644]