Commit 3d78e71c authored by Ad Schellevis's avatar Ad Schellevis

fix lease cleanup

parent 88e2b7cb
......@@ -65,7 +65,7 @@ def main():
last_cleanup = time.time()
addresses = cached_leases.keys()
for address in addresses:
if cached_leases[address]['ends'] > time.time():
if cached_leases[address]['ends'] < time.time():
del cached_leases[address]
dhcpd_changed = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment