]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
unbound-dhcp-leases-bridge: Fix expiry check on leases
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Oct 2024 16:38:49 +0000 (16:38 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 5 Nov 2024 08:12:30 +0000 (09:12 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/unbound/unbound-dhcp-leases-bridge

index 66ea2805486575876f76be158dedaa1b34f2ccbf..4a6f9587f84f8e78a633df9cc2a53a5e8fc01db9 100644 (file)
@@ -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):