From: Michael Tremer Date: Mon, 21 Oct 2024 16:25:40 +0000 (+0200) Subject: unbound-dhcp-leases-bridge: Fix expiry check on leases X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b8e6b11f15ed091183ec3336d1fee0194d2cab2;p=people%2Fms%2Fipfire-2.x.git unbound-dhcp-leases-bridge: Fix expiry check on leases Signed-off-by: Michael Tremer --- diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge index 66ea28054..4a6f9587f 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -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):