luci-app-banip: sync with update 0.3.1
authorDirk Brenken <dev@brenken.org>
Wed, 9 Oct 2019 12:06:33 +0000 (14:06 +0200)
committerDirk Brenken <dev@brenken.org>
Wed, 9 Oct 2019 17:46:33 +0000 (19:46 +0200)
* no longer filter out possible lan devices

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 385db73f466e858aa9b149f34404a916b85b2722)

applications/luci-app-banip/luasrc/model/cbi/banip/overview_tab.lua

index 4302f86063c15904dfc8041701550ca1c20c8f1c..d418ad32af64ec042a323bf836a3650bce7cbd8d 100644 (file)
@@ -30,9 +30,9 @@ o3 = s:option(MultiValue, "ban_iface", translate("Manual WAN Interface Selection
 if dump then
        local i, v
        for i, v in ipairs(dump.interface) do
-               if v.interface ~= "loopback" and v.interface ~= "lan" then
+               if v.interface ~= "loopback" then
                        local device = v.l3_device or v.device or "-"
-                       o3:value(v.interface, v.interface.. " (" ..device.. ")")
+                       o3:value(v.interface, " " .. v.interface .. " (" .. device .. ") ")
                end
        end
 end