From: Michael Tremer Date: Mon, 21 Oct 2024 16:38:49 +0000 (+0000) Subject: unbound-dhcp-leases-bridge: Fix expiry check on leases X-Git-Tag: v2.29-core190~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e595fa11768287b239d049346b6370a0fa23fd3e;p=ipfire-2.x.git unbound-dhcp-leases-bridge: Fix expiry check on leases Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- 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):