Changeset 6048

Show
Ignore:
Timestamp:
04/13/10 08:29:58 (3 years ago)
Author:
ben
Message:

splash: fix exception when listing whitelist entries

Fixes ticket #123.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-splash/root/usr/sbin/luci-splash

    r5128 r6048  
    427427        if (s[".type"] == "whitelist" or s[".type"] == "blacklist") and s.mac then 
    428428            local mac = s.mac:lower() 
    429             local arp = arpcache[mac]:lower() 
     429            local arp = arpcache[mac] 
    430430            print(string.format( 
    431431                "%-17s  %-15s  %-9s  %4s  %-7s  %9s  %9s", 
    432                 mac, arp and arp[2] or "?", s[".type"], "- ", 
    433                 arp and arp[1] or "?", "-", "-" 
     432                mac, arp and arp[2]:lower() or "?", s[".type"], 
     433                "- ", arp and arp[1]:lower() or "?", "-", "-" 
    434434            )) 
    435435        end