luci-app-firewall: allow "open ports" when no wan zone exists
authorJo-Philipp Wich <jo@mein.io>
Mon, 13 Aug 2018 07:20:43 +0000 (09:20 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 13 Aug 2018 07:23:26 +0000 (09:23 +0200)
commitbf123fb7c4918120f5f9f638866bfae1e5b23a54
treed35b13a406f25b1cad1158bc2bc9a0414abdc4e6
parent849d153851db2fc193c1c82648dbe719463d3a38
luci-app-firewall: allow "open ports" when no wan zone exists

Arguably this makes little if no wan zone exists but prefer consistency
over heuristics and always render the "open port" shortcut.

Fixes #2056
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm