[4/4] unbound-dhcp-leases-bridge: Fix expiry check on leases
Commit Message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
config/unbound/unbound-dhcp-leases-bridge | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -717,7 +717,7 @@ class Lease(object):
if not self.time_ends:
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
def rrset(self):