luci-0.10: merge r7328

This commit is contained in:
Jo-Philipp Wich 2011-07-21 15:33:26 +00:00
parent cb45e870f8
commit 4b4454a3b3

View file

@ -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)