mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
* Fixed a bug in Luci Splash where splash leases were deleted after the next sync although they are not outdated
This commit is contained in:
@@ -145,7 +145,7 @@ function sync()
|
||||
|
||||
|
||||
-- For all leases
|
||||
for k, v in pairs(uci:show("luci_splash")) do
|
||||
for k, v in pairs(leases) do
|
||||
if v[".type"] == "lease" then
|
||||
if os.difftime(time, tonumber(v.start)) > leasetime then
|
||||
-- Remove expired
|
||||
|
||||
Reference in New Issue
Block a user