summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/ffluci-splash/src/luci-splash.lua
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/package/ffluci-splash/src/luci-splash.lua')
-rw-r--r--contrib/package/ffluci-splash/src/luci-splash.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/package/ffluci-splash/src/luci-splash.lua b/contrib/package/ffluci-splash/src/luci-splash.lua
index 72b63494c5..ff876c3fd0 100644
--- a/contrib/package/ffluci-splash/src/luci-splash.lua
+++ b/contrib/package/ffluci-splash/src/luci-splash.lua
@@ -73,7 +73,7 @@ function remove_lease(mac)
mac = mac:lower()
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)
uci:del("luci_splash", k)
end