* 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:
parent
c0a991bfcd
commit
6cf7a284ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue