From e595fa11768287b239d049346b6370a0fa23fd3e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 21 Oct 2024 16:38:49 +0000 Subject: [PATCH] unbound-dhcp-leases-bridge: Fix expiry check on leases Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- config/unbound/unbound-dhcp-leases-bridge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge index 66ea280548..4a6f9587f8 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): -- 2.39.5