luci-app-firewall: allow "open ports" when no wan zone exists 2100/head
authorJo-Philipp Wich <jo@mein.io>
Mon, 13 Aug 2018 07:20:43 +0000 (09:20 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 16 Aug 2018 08:52:26 +0000 (10:52 +0200)
commitf64b1523447547032d5280fb0bcdde570f2ca913
treee1ca1b559acc9462a28cae73f304abe2e3e7b70c
parentf4da0b8cfb987fd5a4bf7a2769b8c5d1eb8e218e
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>
(cherry picked from commit bf123fb7c4918120f5f9f638866bfae1e5b23a54)
applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm