git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
c8d6a46
)
splash: fix exception when listing whitelist entries
author
Benoît Knecht
<redacted>
Tue, 13 Apr 2010 07:29:58 +0000
(07:29 +0000)
committer
Benoît Knecht
<redacted>
Tue, 13 Apr 2010 07:29:58 +0000
(07:29 +0000)
Fixes ticket #123.
applications/luci-splash/root/usr/sbin/luci-splash
patch
|
blob
|
history
diff --git
a/applications/luci-splash/root/usr/sbin/luci-splash
b/applications/luci-splash/root/usr/sbin/luci-splash
index da3b58dbb1e6b75b6d850b64ea1a4b39a85ad50f..62c2ac6350335d741e3fee41f65028b4cddbce15 100755
(executable)
--- 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
git clone https://git.99rst.org/PROJECT