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:38:02 +0000 (21:38 +0200)
commit27677af27cba2c3c46cace9675f69bda3c616153
treec0fbb6ddc2149776d759d09bc3cf22d6faea3f18
parent6d94a6eca41da34f4df845d9876be2acfbf5881f
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]