* Fixed luci-splash again
This commit is contained in:
parent
85cba95646
commit
9d8abf9c3e
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ function remove_lease(mac)
|
||||||
mac = mac:lower()
|
mac = mac:lower()
|
||||||
|
|
||||||
for k, v in pairs(uci:show("luci_splash").luci_splash) do
|
for k, v in pairs(uci:show("luci_splash").luci_splash) do
|
||||||
if v.mac:lower() == mac then
|
if v[".type"] == "lease" and v.mac:lower() == mac then
|
||||||
remove_rule(mac)
|
remove_rule(mac)
|
||||||
uci:del("luci_splash", k)
|
uci:del("luci_splash", k)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue