From 44a62295f9fbf68ac47d3f3625d9cba6e9842757 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 26 Jan 2015 17:55:09 +0100 Subject: luci-app-firewall: rework internal/external zone list handling when adding forwards Signed-off-by: Jo-Philipp Wich --- applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'applications') 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 -- cgit v1.2.3