luci-0.10: merge r7328
This commit is contained in:
parent
cb45e870f8
commit
4b4454a3b3
1 changed files with 8 additions and 1 deletions
|
@ -72,7 +72,14 @@ end
|
|||
uci:foreach("dhcp", "host",
|
||||
function(s)
|
||||
if s.mac and s.ip then
|
||||
arp[s.mac:upper()] = { s.ip, s.name }
|
||||
if type(s.mac) == "table" then
|
||||
local m
|
||||
for _, m in ipairs(s.mac) do
|
||||
arp[m:upper()] = { s.ip, s.name }
|
||||
end
|
||||
else
|
||||
arp[s.mac:upper()] = { s.ip, s.name }
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in a new issue