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>
(cherry picked from commit 2c036b36ce)
This commit is contained in:
Jo-Philipp Wich 2020-03-04 20:21:23 +01:00
parent fb679333a5
commit e8c638c869

View file

@ -69,7 +69,7 @@ var protocols = [
];
function lookupProto(x) {
if (x == null || x == '')
if (x == null || x === '')
return null;
var s = String(x).toLowerCase();