diff options
author | Benoît Knecht <benoit.knecht@gmail.com> | 2010-04-13 07:29:58 +0000 |
---|---|---|
committer | Benoît Knecht <benoit.knecht@gmail.com> | 2010-04-13 07:29:58 +0000 |
commit | 4cf6abae1a20272490c5972b5eaa1907b2c06390 (patch) | |
tree | bd1376c35f559b6efa00ede6ecebec95c16eb892 /applications | |
parent | c8d6a460bd23e4d364603297f48d5d812ea0148d (diff) |
splash: fix exception when listing whitelist entries
Fixes ticket #123.
Diffstat (limited to 'applications')
-rwxr-xr-x | applications/luci-splash/root/usr/sbin/luci-splash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-splash/root/usr/sbin/luci-splash b/applications/luci-splash/root/usr/sbin/luci-splash index da3b58dbb..62c2ac635 100755 --- a/applications/luci-splash/root/usr/sbin/luci-splash +++ b/applications/luci-splash/root/usr/sbin/luci-splash @@ -426,11 +426,11 @@ function list() ) do if (s[".type"] == "whitelist" or s[".type"] == "blacklist") and s.mac then local mac = s.mac:lower() - local arp = arpcache[mac]:lower() + local arp = arpcache[mac] print(string.format( "%-17s %-15s %-9s %4s %-7s %9s %9s", - mac, arp and arp[2] or "?", s[".type"], "- ", - arp and arp[1] or "?", "-", "-" + mac, arp and arp[2]:lower() or "?", s[".type"], + "- ", arp and arp[1]:lower() or "?", "-", "-" )) end end |