luci-app-firewall: tools.firewall: properly handle protocol 0
authorJo-Philipp Wich <jo@mein.io>
Wed, 4 Mar 2020 19:21:23 +0000 (20:21 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Mar 2020 19:22:38 +0000 (20:22 +0100)
commit2c036b36ce76c3c7430bf936e131f0d9d4ab83c4
tree8a773bb1fe26a6090c448067512f5dd42936d00b
parentddc545f0f2010a542f9b455b38a3c087d585385f
luci-app-firewall: tools.firewall: properly handle protocol 0

The existing code failed to anticipate that '' == 0 in JS.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js