firewall: options: fix parsing of boolean attributes
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 30 Sep 2020 21:19:02 +0000 (23:19 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Thu, 22 Oct 2020 13:31:23 +0000 (09:31 -0400)
commitad67070f11fb3c7dbf6b3fe60d50b8a486250b55
tree22d74973b92e45111afb6f78f7902996e0c99b09
parenta8d813a6ac2a6bc98d1b5a5a9e63f8ede3cd5fe4
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]