projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb45e87
)
luci-0.10: merge r7328
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 21 Jul 2011 15:33:26 +0000
(15:33 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 21 Jul 2011 15:33:26 +0000
(15:33 +0000)
applications/luci-wol/luasrc/model/cbi/wol.lua
patch
|
blob
|
history
diff --git
a/applications/luci-wol/luasrc/model/cbi/wol.lua
b/applications/luci-wol/luasrc/model/cbi/wol.lua
index 30467f43090273e60bc389d7fe849b288c7afdb9..ad3479bca2381f75880aa73c37d6ec846ccb0040 100644
(file)
--- a/
applications/luci-wol/luasrc/model/cbi/wol.lua
+++ b/
applications/luci-wol/luasrc/model/cbi/wol.lua
@@
-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)