* 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
@ -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…
x
Reference in New Issue
Block a user