Ticket #123 (closed defect: fixed)
"/usr/sbin/luci-splash list" exception on whitelist entry
| Reported by: | reporter | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | LuCI 0.9.0 |
| Component: | LuCI Applications | Keywords: | luci-splash |
| Cc: |
Description
Hi!
I have an entry in the luci-splash whitelist (done via web interface).
root@Abraxas1:/etc# /usr/sbin/luci-splash list
MAC IP State Dur. Intf. Traffic down/up
/usr/bin/lua: /usr/sbin/luci-splash:430: attempt to call method 'lower' (a nil value)
stack traceback:
/usr/sbin/luci-splash:430: in function 'list'
/usr/sbin/luci-splash:128: in function 'main'
/usr/sbin/luci-splash:441: in main chunk
[C]: ?
Looks like
430: local arp = arpcache[mac]:lower()
the :lower() needs to be removed as arpcache[mac] returns an array.
I'm not a Lua-coder, though, so bear with me. After the change, I see:
root@Abraxas1:/etc# /usr/sbin/luci-splash list
MAC IP State Dur. Intf. Traffic down/up
00:1e:c2:bd:d3:e5 172.16.99.16 whitelist - wl0 - -
Greetings,
Dirk
