Merge pull request #2299 from dibdot/banip
authorDirk Brenken <dev@brenken.org>
Sat, 17 Nov 2018 15:57:55 +0000 (16:57 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Nov 2018 15:57:55 +0000 (16:57 +0100)
luci-app-banip: sync with update 0.0.6

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

index 00bb5e426230d5750731a15153a83f50c2541bb0..8b5bedc089c73dce744e8d6f0092a78bdb508ccf 100644 (file)
@@ -27,7 +27,8 @@ o2 = s:option(Flag, "ban_automatic", translate("Automatic WAN Interface Detectio
 o2.default = o2.enabled
 o2.rmempty = false
 
-o3 = s:option(ListValue, "ban_iface", " ")
+o3 = s:option(MultiValue, "ban_iface", translate("Interface Selection"),
+       translate("Disable the automatic WAN detection and select your preferred interface(s) manually."))
 for _, dev in ipairs(devices) do
        if dev ~= "lo" and dev ~= "br-lan" then
                local iface = net:get_interface(dev)
@@ -42,6 +43,7 @@ for _, dev in ipairs(devices) do
                end
        end
 end
+o3.widget = "checkbox"
 o3.default = ban_iface
 o3.rmempty = false