luci-app-firewall: rework internal/external zone list handling when adding forwards
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 26 Jan 2015 16:55:09 +0000 (17:55 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 26 Jan 2015 16:55:09 +0000 (17:55 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm

index 3726f643dfbd3177f40b99d15252ce9e690d95e2..3c46e228f756c1e21ac6c8c074587995f1fd2bbb 100644 (file)
@@ -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