diff options
Diffstat (limited to 'applications/luci-statistics/luasrc/model')
-rw-r--r-- | applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua index be391a9c08..02fa4cb0b1 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua @@ -26,13 +26,15 @@ enable = s:option( Flag, "enable" ) enable.default = 0 -- collectd_dns.interfaces (Interface) -interfaces = s:option( ListValue, "Interfaces" ) +interfaces = s:option( MultiValue, "Interfaces" ) +interfaces.widget = "select" +interfaces.size = 5 interfaces:depends( "enable", 1 ) interfaces:value("any") for k, v in pairs(luci.sys.net.devices()) do - interfaces:value(v) + interfaces:value(v) end - + -- collectd_dns.ignoresources (IgnoreSource) ignoresources = s:option( Value, "IgnoreSources" ) ignoresources.default = "127.0.0.1" |