mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
unbound-dhcp-leases-bridge: Fix expiry check on leases
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
131bcfa999
commit
e595fa1176
@@ -717,7 +717,7 @@ class Lease(object):
|
|||||||
if not self.time_ends:
|
if not self.time_ends:
|
||||||
return self.time_starts > datetime.datetime.utcnow()
|
return self.time_starts > datetime.datetime.utcnow()
|
||||||
|
|
||||||
return self.time_starts > datetime.datetime.utcnow() > self.time_ends
|
return not self.time_starts < datetime.datetime.utcnow() < self.time_ends
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def rrset(self):
|
def rrset(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user