luci-app-mentohust: hide some known virtual interfaces
This commit is contained in:
parent
6138ab6635
commit
bcf8805710
@ -23,7 +23,11 @@ o.password = true
|
|||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
|
|
||||||
o = e:option(Value, "interface", translate("Network interface"))
|
o = e:option(Value, "interface", translate("Network interface"))
|
||||||
for t, e in ipairs(i.net.devices()) do if e ~= "lo" then o:value(e) end end
|
for t, e in ipairs(i.net.devices()) do
|
||||||
|
if e ~= 'lo' and not string.match(e, '^docker.*$') and not string.match(e, '^sit.*$') and not string.match(e, '^dummy.*$') and not string.match(e, '^teql.*$') and not string.match(e, '^veth.*$') and not string.match(e, '^ztly.*$') then
|
||||||
|
o:value(e)
|
||||||
|
end
|
||||||
|
end
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
|
|
||||||
o = e:option(Value, "ipaddr", translate("IP address"))
|
o = e:option(Value, "ipaddr", translate("IP address"))
|
||||||
|
Loading…
Reference in New Issue
Block a user