luci-app-firewall: map proto '*' and 'any' to all on rule config
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 11 Dec 2020 12:22:38 +0000 (13:22 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 16 Dec 2020 12:25:18 +0000 (13:25 +0100)
commit4edcf383e0d00d97bb76030122f399e4571d43f3
tree58407e63077b7ed848e85965529e5ab6cba179f5
parentcaae7adfaaf2ecce3499dd63af21cc612a68f60a
luci-app-firewall: map proto '*' and 'any' to all on rule config

Before the change, the options '*' and 'any' in the drop down were not
recognized as valid options, when loaded from the uci. With this change,
the options '*' and 'any' are mapped to 'all' and saved as such. This
change is especially important if the proto option is changed manually
to '*' or 'any' in shell and then further configured via LuCI.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 972096bf39c932ad007fb431c81a2f5fab64649f)
applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js