summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-26 17:55:09 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-01-26 17:55:09 +0100
commit44a62295f9fbf68ac47d3f3625d9cba6e9842757 (patch)
tree63958cfe904ed7ed07c0034441972ea7fa45c212
parent83d520ab07c05bb637d9ec35da590814064e51f8 (diff)
luci-app-firewall: rework internal/external zone list handling when adding forwards
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r--applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm3
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm
index 3726f643d..3c46e228f 100644
--- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm
+++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm
@@ -6,7 +6,8 @@
for _, z in ipairs(fw:get_zones()) do
if z:name() ~= "wan" then
izl[#izl+1] = z
- elseif z:name() ~= "lan" then
+ end
+ if z:name() ~= "lan" then
ezl[#ezl+1] = z
end
end