1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Fix default

This commit is contained in:
Ycarus 2018-03-12 17:19:43 +01:00
parent 82e83780eb
commit e07b40b10b
2 changed files with 2 additions and 0 deletions

View file

@ -12,6 +12,7 @@ s = m:section(TypedSection, "interface", translate("Interfaces"))
s.template_addremove = "omr-quota/cbi-select-add"
s.addremove = true
s.add_select_options = { }
s.add_select_options[''] = ''
for _, iface in ipairs(ifaces) do
if not (iface == "lo" or iface:match("^ifb.*")) then
s.add_select_options[iface] = iface

View file

@ -40,6 +40,7 @@ s = m:section(TypedSection, "interface", translate("Interfaces"))
s.template_addremove = "omr-tracker/cbi-select-add"
s.addremove = true
s.add_select_options = { }
s.add_select_options[''] = ''
for _, iface in ipairs(ifaces) do
if not (iface == "lo" or iface:match("^ifb.*")) then
s.add_select_options[iface] = iface