luci-app-firewall: CBIProtocolSelect: properly handle unrecognized protos
authorJo-Philipp Wich <jo@mein.io>
Thu, 9 Dec 2021 15:24:31 +0000 (16:24 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 9 Dec 2021 15:24:31 +0000 (16:24 +0100)
commit43818163155d5ce49414a8e54f5746a85606ba03
treeba299d313f9a6462c745201175a833e024d53e73
parent604c00905987cf38336754aef408d837b368a8e5
luci-app-firewall: CBIProtocolSelect: properly handle unrecognized protos

Prevent incorrectly replacing unrecognized protocol numbers with -1.

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