]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
unbound-dhcp-leases-bridge: Fix expiry check on leases dhcp-leases-bridge
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Oct 2024 16:25:40 +0000 (18:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Oct 2024 16:25:40 +0000 (18:25 +0200)
Signed-off-by: Michael Tremer <michael.tremer@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):